Search code examples
seleniumselenium-webdriverselenium-iedriver

Error with SendKeys IEDriverServer selenium


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("test@test.com")

In Chrome when I run the test is writing test@test.com 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.


Solution

  • You can try this:

    string email="test@test.com"
    Driver.FindElement(By.Id("xxxxxxxx")).SendKeys(email)
    

    Try this Answer

    Sending '@' special character with SendKeys to IE 11