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!)
dimension = image.size['width'] * image.size['height']
driver.execute_script('arguments[0].setAttribute("dimension","{}");'.format(dimension), image)
You can try this but understand that the site may not be OK with you sending whatever for a value. It may still limit the value to 100, etc.
The Javascript part just takes the element you passed it and sets the value to whatever you pass in, e.g. "300".
select = driver.find_element_by_id("uniqueid")
WebDriver.execute_script("arguments[0].value = arguments[1]", select, "300")