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

Open URL method fails at execution at the async callback #84

Open
fjody opened this issue Oct 2, 2019 · 0 comments
Open

Open URL method fails at execution at the async callback #84

fjody opened this issue Oct 2, 2019 · 0 comments

Comments

@fjody
Copy link

fjody commented Oct 2, 2019

Hi,

I use Protractor v0.12.0, with Selenium for E2E testing.
Presently we are integrating a 3rd party cloud real device testing solution.

We faced with an issue.
If we open a page, it always fails at the opening, because it uses asyncCallback.

Is it possible to solve it without async?

We tried with .Url and .Navigate().GoToUrl() and always came the same error.

The error is at this JS script:

var asyncCallback = arguments[0];
var callback = function(args) {
    setTimeout(function() {
        asyncCallback(args);
    }, 0);
};
var definitelyNg1 = false;
var definitelyNg2OrNewer = false;
var check = function() {
    /* Figure out whic

This is the error message:
HANDSET_USAGE_ERROR: executeScript command failed. Reason: handset server: timeout expired.

@fjody fjody changed the title GoTo() method should avoid asynchronous call Open URL method fails at execution at the async callback Oct 2, 2019
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

1 participant