Error with SendKeys IEDriverServer selenium

285 views Asked by At

I'm testing a web application and the login test works fine in Chrome but when I try to run the test in IExplorer I found a problem:

I sent the email to login with

Driver.FindElement(By.Id("xxxxxxxx")).SendKeys("[email protected]")

In Chrome when I run the test is writing [email protected] in the text box But when I execute the test in IExplorer using the IEDriverServer the text box is filled with "test2test.com", is replacing the @ key with a 2.

1

There are 1 answers

11
iamsankalp89 On BEST ANSWER

You can try this:

string email="[email protected]"
Driver.FindElement(By.Id("xxxxxxxx")).SendKeys(email)

Try this Answer

Sending '@' special character with SendKeys to IE 11