jeudi 25 mars 2021

Safari on Browserstack now working correctly

I am automating a simple login script through Browserstack using Selenium. The script I have written works on chrome windows, chrome mac os, and Android Samsung. However, when I run the script through apple iPhone 11 or mac os safari I get an error message saying can not locate

driver.findElement(By.xpath("//*[contains(text(),'Log in')]")).click();

Apart from the device, I am automating nothing else changes. What is the fix for this?

Aucun commentaire:

Enregistrer un commentaire