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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -