This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
20 / 22
May 2017
1 year later

I have common instance variable for both iOS and Android driver like-

AppiumDriver driver;

If(OS.equals(“Android”)
{
driver= androidDriver();
}else{
driver= iosDriver();
}

now the issue is that 2nd thread stops working as soon as 1st thread is completed and driver.quit() command is executed because driver variable was common…

How to solve this?