tebeka / selenium

Selenium/Webdriver client for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I use the tab key to jump to the next input box and type in the content?

cherishingany opened this issue · comments

elem, err := driver.FindElement(selenium.ByXPATH, "//*[@id="loginId"]")
elem.SendKeys("login")
elem.SendKeys(selenium.TabKey)
elem.SendKeys("password")

This will bring him back to the first input box, and not to the "password" input box