On Chrome I am testing an application that opens a new tab after double click. When I use getWebDriver to get the current active driver in the new tab, it returns the old inactive driver, as such I’m running out of ideas to verify objects on the new active tab. Any suggestions on what is happening here?
getWebDriver() doesn’t return the current active web driver when application opens in more than one tabs
You need to switch to that tab/window first and then use getWebDriver() so that it will get the current active browser in that tab.