I am working on crossbrowsertesting platform in Android Chrome and facing a challenge in which I need to click on a link that opens up in new tab. I need to switch to that new tab and get its URL. Problem is I am unable to switch to newly opened tab and get its URL.
Method used - When using driver.switchTo().window(child_window) I am getting below error -
org.openqa.selenium.InvalidArgumentException: invalid argument: 'name' must be a string.
But the same is working fine in Windows based chrome (not Android chrome browser).
Platform Information :
crossbrowsertesting
"browserName", "Chrome"
"deviceName", "Galaxy S9"
"platformVersion", "9.0"
"platformName", "Android"
"deviceOrientation", "portrait"