Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Denied with new option 'ms:experimental-webdriver' #907

Open
CyrilJ opened this issue Oct 10, 2019 · 5 comments
Open

Access Denied with new option 'ms:experimental-webdriver' #907

CyrilJ opened this issue Oct 10, 2019 · 5 comments

Comments

@CyrilJ
Copy link

CyrilJ commented Oct 10, 2019

Hello,

I tried the new version of winappdriver seems working well, but sometimes i got an Access Denied error.
No problem with the previous version.

I'm using WD in javascript

POST /wd/hub/session/6952A0BD-7615-483B-B21E-9FE2DCE84506/moveto HTTP/1.1
Accept: application/json
Connection: keep-alive
Content-Length: 29
Content-Type: application/json; charset=UTF-8
Host: 192.168.51.254
User-Agent: admc/wd/1.11.4

{"element":"7.2728.34681667"}
HTTP/1.1 500 Internal Error
Content-Length: 74
Content-Type: application/json

{"status":13,"value":{"error":"unknown error","message":"Accès refusé"}}

@licanhua
Copy link
Contributor

@CyrilJ Thanks to report it. Could you please help:

  1. How often do you hit the problem? Do you use xpath when this problem happens?
  2. Do you still hit this when you remove 'ms:experimental-webdriver' capability?
  3. Is there any error in WinAppDriver console?

@licanhua
Copy link
Contributor

Another possible reason is what VijayHugar described in #892, you have duplicated elements with the same locator.

@CyrilJ
Copy link
Author

CyrilJ commented Oct 14, 2019

I will try as soon as i can without the option.
But the older version of WAP was working properly (1.1), didn't have Access denied before migrating and testing.

@hassanuz
Copy link
Contributor

Just out of pure curiosity, can you try setting the capability to false and see if the issue persists:

C#: appCapabilities.SetCapability("ms:experimental-webdriver", false);

@hassanuz
Copy link
Contributor

Hi @CyrilJ,

Is the problem still persisting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants