How do you focus on new windows with selenium ide?

前端 未结 4 800
终归单人心
终归单人心 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 17:45

    Consider this: would you prefer to just remove the target="_blank" attribute? For me this has been a solution:

    getEval
    this.page().findElement('link=Facebook').removeAttribute('target'); 
    

    Staying within the same window has some advantages in Selenium IDE, seeing it doesn't support target blank.

提交回复
热议问题