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

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -