Hi everyone I have the following problem.
At the beginning of my test I open the browser and navigate to a certain URL (Microsoft in the example)
WebUI.openBrowser('')
WebUI.navigateToUrl('http://www.microsoft.com')
Then I open a second browser tab
js.executeScript ('window.open ();', [])
I move to the newly opened tab
WebUI.switchToWindowIndex (1)
I open a certain url in the newly opened tab (google in the example)
WebUI.navigateToUrl ('http://www.google.com')
and so far everything works perfectly.
When I try to retrieve the title of the second tab I opened
String titleSecondTab = WebUI.getWindowTitle ()
the WebUI.getWindowTitle () statement always returns me the title of the first Tab (Microsoft) and not of the second tab (Google)
What am I doing wrong? I just don’t understand …
Thank you