How Can I Change An Attribute Value In The Dom Using Selenium And Python
I'm trying to navigate through a website using Python and Selenium and I've run into an issue that I can't figure out how to solve (assuming it's even possible!)
Solution 2:
dimension = image.size['width'] * image.size['height']
driver.execute_script('arguments[0].setAttribute("dimension","{}");'.format(dimension), image)
Post a Comment for "How Can I Change An Attribute Value In The Dom Using Selenium And Python"