WebDriver and Javascript

Jun 5, 2015 at 1:49 PM

has any of you tried to use Javascript to connect to Windows phone driver?

I have tried couple of approaches but it didn't work.
Jun 5, 2015 at 11:29 PM
What you are trying to do? send log and test code ?
Jun 8, 2015 at 7:20 AM
Edited Jun 8, 2015 at 7:21 AM
I am trying to connect to Windows Phone Selenium Driver using Javascript.
Since I am not that familiar with JavaScript, maybe I am doing some mistake from that point.

What have I done:
  1. I started Windows Phone Selenium WebDriver
  2. Took IP and tried to connect to it from JavaScript
  3. I have tried to connect to driver using WD:
     var browser = wd.remote({
        protocol: 'http',
        hostname: <ip>,
        port: 8080,
        path: ''
    }, 'promiseChain')  ; 
  4. After I execute the code, in my emulator Windows Phone Selenium WebDriver is closed and nothing is executed.
When I do the same thing using C# and RemoteWebDriver everything works as it should.
Jul 8, 2015 at 11:21 PM