I'm trying to key a password containing a special character double quotes. I'm getting a compile time error in Java as expected for code mentioned below.
driver.findElement(By.id("cred_password_inputtext"))
.sendKeys("ghsfdjfsg"ksdkhkh");
I'm trying to key a password containing a special character double quotes. I'm getting a compile time error in Java as expected for code mentioned below.
driver.findElement(By.id("cred_password_inputtext"))
.sendKeys("ghsfdjfsg"ksdkhkh");
Use escape character '\' while sending the password. i.e;
driver.findElement(By.id("cred_password_inputtext")).sendKeys("ghsfdjfsg\"ksdkhkh");