How do you focus on new windows with selenium ide?

前端 未结 4 796
终归单人心
终归单人心 2021-02-02 17:14

I am trying to use selenium ide to duplicate an action. The action is clicking on a link that open a new window. How do you make selenium ide focus on the new window instead of

4条回答
  •  伪装坚强ぢ
    2021-02-02 18:04

    Try this using Selenium Web Driver 2:

    driver.switch_to.window(driver.window_handles.last);
    

提交回复
热议问题