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

Expected behaviour for waitForLocation not met #121

Open
ch-ruetgers-RMH opened this issue Aug 24, 2023 · 0 comments
Open

Expected behaviour for waitForLocation not met #121

ch-ruetgers-RMH opened this issue Aug 24, 2023 · 0 comments

Comments

@ch-ruetgers-RMH
Copy link

ch-ruetgers-RMH commented Aug 24, 2023

I open a page which initiates a redirect chain through multiple transition pages across multiple domains (a typical SSO Login)

after an open | url I add a waitForLocation | anotherUrl | 100000

My expectation is, waitForLocation waits up to 100.000 milliseconds and check any document.location() if the condition is met. If yes, it immediately steps to the next command. In case the timeout is exceeded, the test-script stops.

But instead, waitForLocation seem to wait only for the next document.location, verifies if the condition meets this location and stops the script on the first redirect.

Is this an error or do I expect to much from waitForLocation. In the latter case, what is your suggested solution to fullfil my expectation?

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