Error when use "SendKeys"

Mar 27, 2014 at 10:17 AM
Edited Mar 27, 2014 at 11:40 AM
Hi,

When I try to use "driver.FindElement(By.Id("id")).SendKeys("string");" I get an error " Call could not be fullfield. JavaScript injection failed.".

Anyone can help me please ?

Best regards,

Xialuna
May 15, 2014 at 8:31 PM
Having the same problem.
Apr 23, 2015 at 7:23 AM
Me too facing same issue. I tried both C# in Visual studio and Java in Eclipse. Send key is not working in WindowsWebDriver. I tried in Windows Physical device 8.1 in windows 8.1
Any updated version on WindowsPhoneWebdriver available. Please help me.
Coordinator
Apr 23, 2015 at 1:18 PM
You could try with an experimental release from http://winphonewebdriver.codeplex.com/releases/view/611322 . There are some notes about setting it up in this blog post http://blog.vjrantal.net/2015/02/05/angularjs-automated-testing-on-windows-phone/ .

I tested that when I have this kind of C# program:
        static void Main(string[] args)
        {
            ICapabilities desiredCapabilities = new DesiredCapabilities();
            IWebDriver driver = new RemoteWebDriver(new Uri("http://<THE_IP_OF_MY_WINDOWS_PHONE>:8080"), desiredCapabilities);
            driver.Navigate().GoToUrl("http://www.codeplex.com");
            driver.FindElement(By.Id("searchsite")).SendKeys("cats");
        }
After the program exited, I saw "cats" written to the search box in my Windows Phone 8.1 device so SendKeys seems to have worked.