Change color of gradient based on user selection

I am trying to change the color of a gradient depending on user selection, I have everything working but I just don’t know how to change the gradient using the format I have. (change.style.background = "linear-gradient(90deg, color1, red)";). const len = document.querySelectorAll(“input”).length; let change = document.querySelector(“.body”); for (let x = 0; x < len; x++)… Read More Change color of gradient based on user selection

How to get attribute value using Selenium – Python

HTML: <div class data="#results"> <a href="javascript:void(0);" title="testtest" class="btn btn-white btn-sm btn-rounded dropdown-toggle">results</a> How do I extract the value of title using selenium? This is what I have tried so far but it gives None. driver.get(url) toogle = driver.find_element_by_xpath("XPATH_HERE") val = toogle.get_attribute("title") print(val) >Solution : To print the value of the title attribute you have to… Read More How to get attribute value using Selenium – Python