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?