ericmckean / chromedriver

Automatically exported from code.google.com/p/chromedriver
0 stars 0 forks source link

ChromeDriver fail to find a control #827

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?

I'm trying to send keys to an email html field 

driver.FindElement(By.Name("e-mail")).SendKeys("fjdifj@aa.com");

This is the HTML code for the email field 
<div class="emailcss">
<input name="e-mail" type="text" class="emailcss inputError">
</div>

This work perfectly fine when using Firefox driver...

What is the expected output? What do you see instead?

I receive the following error when trying to find the email field element:

Result Message: System.InvalidOperationException : unknown error: object is not 
a function
  (Session info: chrome=35.0.1916.114)
  (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 x86_64)
Result StackTrace:  
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response 
errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String 
driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.InternalExecute(String 
driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebElement.Execute(String commandToExecute, 
Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebElement.SendKeys(String text)
at SeleniumTests.Login.TheLoginTest() in c:\Users\tfssetup\Documents\Visual 
Studio 2012\Projects\UnitTestProject1\UnitTestProject1\login.cs:line 50

Selenium version: ChromeDriver 2.9
OS: Win 7
Browser: Chrome 
Browser version: 35.0.1916.114 m

Original issue reported on code.google.com by Oren...@gmail.com on 15 Jun 2014 at 9:12

GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 21 Feb 2015 at 12:18

GoogleCodeExporter commented 9 years ago
unable to reproduce the issue. Please try again and let us know if we differ 
from what you are doing

Original comment by ssudunag...@chromium.org on 5 Mar 2015 at 10:06

GoogleCodeExporter commented 9 years ago

Original comment by ssudunag...@chromium.org on 26 Mar 2015 at 6:29