Send keys without specifying element in python selenium webdriver

后端 未结 3 1068
小鲜肉
小鲜肉 2021-02-02 08:14

I have a page whose source code is not available, but there is a input box where cursor is blinking.

Can i write something into the text box without finding the elem

3条回答
  •  不思量自难忘°
    2021-02-02 09:02

    This worked for me:

    driver.find_element_by_tag_name('body').send_keys(' ')
    

    (Which I used to use a space character to scroll through a page)

提交回复
热议问题