我正在测试一个web应用程序,登录测试在Chrome中运行得很好,但是当我尝试在IExplorer中运行测试时,我发现了一个问题:
我发了封电子邮件来登录
Driver.FindElement(By.Id("xxxxxxxx")).SendKeys("test@test.com")在Chrome中,当我运行测试时,测试是在文本框中写入test@test.com,但当我在IExplorer中使用IEDriverServer执行测试时,文本框中填充了"test2test.com",将@键替换为2。
发布于 2017-09-11 09:18:22
你可以试试这个:
string email="test@test.com"
Driver.FindElement(By.Id("xxxxxxxx")).SendKeys(email)试试这个答案
https://stackoverflow.com/questions/46152061
复制相似问题