mercredi 23 novembre 2016

Robot Framework - Selenium2Library - Chrome & Edge open new tab instead of window

Sorry if this is a mundane question.

My issue is that the user can click on the "Help" button, which by default will open in a new tab, the help page.

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.

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?

Is there a way to force it to be a Window and not a Tab? Or something?

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.

Aucun commentaire:

Enregistrer un commentaire