You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Ojasadi From the shared code snippet, I see that you are running the tests on your local Chrome browser and not on BrowserStack. Do confirm if you are running the tests on BrowserStack and facing the mentioned behavior.
public class Readandwrite {
public class ReadandWrite2 extends Readandwrite {
ChromeDriver cd;
//@parameters ({"UserName","pass"})
@BeforeTest
public void ReadandWriteExcel() {
}
@test
public void usernameandpassword() {
WebElement UserName=cd.findElement(By.id("email"));
WebElement pass= cd.findElement(By.id("pass"));
UserName.sendKeys(Sh.getRow(1).getCell(0).getStringCellValue());//Error
pass.sendKeys(Sh.getRow(1).getCell(1).getStringCellValue());//Error
cd.findElement(By.xpath("//*[@id="loginbutton"]")).click();
}}
The text was updated successfully, but these errors were encountered: