0
votes

We have a button on the website that should open a modal (only).

Selenium IDE is opening the modal AND additionally a new blank window.

This is the command I am using to click:

<td>clickAt</td>
<td>css=#tabControl .settings</td>

though when clicking manually on the same button (I mean manually in the browser), this doesn't happen, instead it opens just the modal. A similar issue happens when it should open a link in a new tab, it opens it in a new window instead. Also I see this error:

[warn] Link has target '_blank', which is not supported in Selenium! Randomizing target to be: selenium_blank19992

Two questions:

  1. Is there a way that it will not open the new window at all?
  2. if no, is it possible to close that new window? I managed to close windows with the "SelectWindow" and then "Close" commands, but the problem with this one is that it doesn't have any title, so I cannot select it and when I am just using "Close", it closes the wrong window..

Thanks

1
Ok, I read it.. and? :) Sorry, I don't see what am I suppose to get out of it. Thanks for the help! - whatever61
target="_blank": "Load the response into a new unnamed HTML4 window or HTML5 browsing context." - SiKing
Ok.. and? My issue is that is that in all the browsers (including FF) clicking on this action will open it in a new tab, but when clicking on the same thing via Selenium IDE it will open an additional blank window. So issue is specifically with how Selenium IDE behaves - whatever61

1 Answers

0
votes

Your code is saying find the item with the id of 'tabControl' and 'clickAt' every descendant of that item that has the class 'settings'.

<tr>
    <td>click</td>
    <td>css=#tabControl.settings</td>
    <td></td>
</tr>