Robot Framework - Selenium2Library - Chrome & Edge open new tab instead of window
<p>Sorry if this is a mundane question.</p>
<p>My issue is that the user can click on the &quot;Help&quot; button, which by default will open in a new tab, the help page.</p>
<p>When firing the test in Firefox, it creates a new window. Which is great as I can use the Select Window keyword and give it the URL. However, with Chrome and Edge, it just makes a new tab.</p>
<p>I read that Tabs aren't supported - But the weird part is, the test on Edge passes fine, it is just Chrome which is having the problem. Is there a reason behind that?</p>
<p>Is there a way to force it to be a Window and not a Tab? Or something?</p>
<p>I read that I can input a keyboard shortcut of CTRL + Tab. But that feels really dirty and would prefer a better way of doing it.</p>
<p>Error:</p>
<p>ValueError: Unable to locate window with URL 'http://...</p>
<p><strong>EDIT</strong></p>
<p>OK - So instead of using the URL param, I tried the title instead. Just on a whim. And it worked (?) I have no idea how it worked and why using the URL didnt and the title did: Here are the lines I used:</p>
<pre><code>Run Keyword If    '${Browser}' == 'Chrome'
    ...    Select Window    1.7.1 User Guide
    ...    ELSE
    ...    Select Window    1.7.1 User Guide - Welcome to the User Guide
</code></pre>
<p>Still though, both the &quot;Gets&quot; did not produce a link to the newly created tab / window though :/ - Many thanks to shicky and Helio!</p>