String firstTab = getDriver().getWindowHandle();
ArrayList<String> sWindows = new ArrayList<String>(getDriver().getWindowHandles());
for(String window: sWindows){ if( !window.equals(firstTab) ){ secondTab = window; } }
As per stackover flow this should work fine , currently tracking issue with https://bugs.chromium.org/p/chromedriver/issues/detail?id=1465
Regards,
Vikram
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/964dc7fa-49e0-4dc4-bc33-1e0ee352e907%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.