TestProject Forum

How to open new tab

how to create new tab in chrome with android device.is it possible?

Hi,

Please find below code.

WebDriver driver = webdriver.ChromeDriver();
driver.get(“http://discuss.appium.io/”);
WebElement body = driver.findElement(by.name(“body”);
body.sendKeys(Keys.CONTROL + “t”);

Thanks,
Santosh

Thanks @Santosh.Yakkla
Hello @jignasha.sensussoft
If you wish to do this in a recorded test, just simply add the open URL in a new tab action to your web test.
Then run it on a mobile device.
image

You can read more on how to run and record a web test to run on a mobile device.