python - Selenium - send keys - what element should I use -
i'm trying scroll @ bottom of page. adviced, here on so, this:
from selenium.webdriver.common.keys import keys element = driver.find_element_by_ ... element.send_keys(keys.control , keys.end)
i can't figure out element shoul use. trying put webdriver instance instead of element did not work. need current window element?
have ideas?
body = driver.find_element_by_xpath('/html/body') body.click() actionchains(driver).key_down(keys.command).send_keys(keys.arrow_down).perform()
looking @ previous question link
this works on mac. change combo windows.
Comments
Post a Comment