katalon-studio / katalon-recorder

Apache License 2.0
315 stars 140 forks source link

Expected behaviour for waitForLocation not met #121

Open ch-ruetgers-RMH opened 1 year ago

ch-ruetgers-RMH commented 1 year ago

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?