Webdriveragent: localhost:8100/inspector is not working

Created on 4 Apr 2017  Â·  16Comments  Â·  Source: facebookarchive/WebDriverAgent

The error is shown in the screen shot

issue

But I'm able to get the source as shown the image

issuesource

System configuration:
Appium: 1.6.3
Xcode : 8.2.1
iOS simulator: 10.2
Using XCIUTest for automation

Please look into the issue.

Most helpful comment

Try to move the WebDriverAgent directory to a different directory, run the scripts, and then move it back. Something like this:

mv /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent ~/WebDriverAgent
cd ~/WebDriverAgent
sh Scripts/bootstrap.sh
mv ~/WebDriverAgent /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent

All 16 comments

Did you run bootstrap script? It looks like code for inspector is missing

Yes, I ran "sh ./Scripts/bootstrap.sh -d"

That will only fetch dependencies, but will not build inspector. Run it without any param, it will do both.

This the error when I try to do it without param

issueinspector

I tried to pull WebDriverAgent manually and replaced existing WDA with the one I have pulled. After executing bootstrap there were no errors as such mentioned above. But now the error with inspector is something like this,

issueinspector2

I think this is the same error as stated at the beginning of the issue.

npm v4.0.5
node v7.4.0

This should be fixed, can you confirm?

Not working yet. When I try to run "sh ./ Scripts/bootstrap.sh" then it throws an error at app.js... After then I tried to access inspector then there was a blank screen and as usually​ localhost:8100/source works.

Am I missing some system configuration for setting up the inspector?
What are the other ways to inspect through WDA?

The app.js is the same you posted above or different?

Same..

Make sure to try WDA independently. I have seen many issues with inspector when WDA in embedded in Appium.

Can you try:

  • removing node_modules in inspector folder?
  • updating npm and node?

As you suggested, I have removed node_modules from inspector folder and updated node to 7.8.0 and npm to 4.2.0. bootstrap throws the same error(app.js) and the inspector screen is blank.

Can you try fetching WDA independently and not nesting in Appium. Does the error still exists for you?

Try to move the WebDriverAgent directory to a different directory, run the scripts, and then move it back. Something like this:

mv /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent ~/WebDriverAgent
cd ~/WebDriverAgent
sh Scripts/bootstrap.sh
mv ~/WebDriverAgent /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent

Thanks guys, it works now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lucasdaniele1 picture lucasdaniele1  Â·  15Comments

AlexJinsin picture AlexJinsin  Â·  14Comments

bearxc picture bearxc  Â·  6Comments

NickAb picture NickAb  Â·  17Comments

VijilPatodi picture VijilPatodi  Â·  17Comments