sendKeys() in Selenium web driver

前端 未结 11 1811
野性不改
野性不改 2020-12-31 04:23

I am new to Selenium. I just want to send keys to a username text box and send a tab key both at a time so that text box can check for availability of username.

11条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-31 05:15

    I doubt for Keys.TAB in sendKeys method... if you want to use TAB you need to do something like below:

    Actions builder = new Actions(driver);
    builder.keyDown(Keys.TAB).perform()
    

提交回复
热议问题