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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -