“Wie man in Selenium Python eingreift” Code-Antworten

Seleniumschlüssel betreten Python

from selenium.webdriver.common.keys import Keys
driver.find_element_by_name("Value").send_keys(Keys.ENTER)
Helpless Hummingbird

Wie man in Selenium Python eingreift

from selenium.webdriver.common.keys import Keys
tb.send_keys(Keys.ENTER)


## In some pages, there is no submit button to submit the query, instead, it requires
## hitting enter button to submit the query.
## So in that case, we need to press enter button.
## To do that we need to import the above module.
## Then after we need to specify the textbox (in my case,it is tb)
## for which we want to hit enter button and
## submit the query, and then using send_keys(), we need to 
## pass value inside it which is ENTER button.
## It worked in my case, hope it work for yours :)
Helper :)

So drücken Sie die Eingabetaste in Selenium Python

from selenium.webdriver.common.keys import Keys
driver.find_element_by_name("search").send_keys(Keys.ENTER)
Tejas Naik

Betreten Sie Selen in Python

from selenium.webdriver.common.keys import Keys
     driver.find_element_by_id("element_id").send_keys(Keys.ENTER)
kirito.

Ähnliche Antworten wie “Wie man in Selenium Python eingreift”

Fragen ähnlich wie “Wie man in Selenium Python eingreift”

Weitere verwandte Antworten zu “Wie man in Selenium Python eingreift” auf Python

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen