How do you focus on new windows with selenium ide?

前端 未结 4 799
终归单人心
终归单人心 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:01

    You can store the random window ID (generated by Selenium IDE) using ‘storeAttribute’ command. You just need to store the ID in a variable and then you can select the window using ‘selectWindow’ command.

    Try using this:

    
       storeAttribute
       link=Help Center@target
       window_ID
    
    
    
       selectWindow
       ${window_ID}
       
     
    

提交回复
热议问题