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

Explicit timeout not waiting the full amount of time when loading new driver. #194

Open
itfranck opened this issue Dec 5, 2020 · 0 comments
Assignees
Labels

Comments

@itfranck
Copy link
Collaborator

itfranck commented Dec 5, 2020

This should work flawlessly.
But it doesn't unless I add sleep time...
I need to investigate further.

I noticed a lot of small annoyances when testing in production context where I did need to wait-seelement or wait-sedriver a bit too much to my

Start-SeDriver -Browser Chrome -StartURL 'https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=13&ct=1607153201&rver=7.0.6737.0&wp=MBI_SSL&wreply=https%3a%2f%2foutlook.live.com%2fowa%2f%3fnlp%3d1%26RpsCsrfState%3dd87b1e47-26ba-c520-6763-f018d6646298&id=292841&aadredir=1&CBCXT=out&lw=1&fl=dob%2cflname%2cwld&cobrandid=90015' -Position 1920x0 -ImplicitWait 10
Get-SeElement -By TagName -Value input -Timeout 3
Start-SeDriver -Browser Chrome -StartURL 'https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=13&ct=1607153201&rver=7.0.6737.0&wp=MBI_SSL&wreply=https%3a%2f%2foutlook.live.com%2fowa%2f%3fnlp%3d1%26RpsCsrfState%3dd87b1e47-26ba-c520-6763-f018d6646298&id=292841&aadredir=1&CBCXT=out&lw=1&fl=dob%2cflname%2cwld&cobrandid=90015' -Position 1920x0 -ImplicitWait 10
Get-SeElement -By TagName -Value input -Timeout 3

This, in contrast, work fine

Start-SeDriver -Browser Chrome -StartURL 'https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=13&ct=1607153201&rver=7.0.6737.0&wp=MBI_SSL&wreply=https%3a%2f%2foutlook.live.com%2fowa%2f%3fnlp%3d1%26RpsCsrfState%3dd87b1e47-26ba-c520-6763-f018d6646298&id=292841&aadredir=1&CBCXT=out&lw=1&fl=dob%2cflname%2cwld&cobrandid=90015' -Position 1920x0 -ImplicitWait 10
Wait-SeElement -By TagName -Value Input -Condition ElementIsVisible
$Email = Get-SeInput -Type email 
$Email

I definitely need to borrow a page from wait-seelement.

@itfranck itfranck added the bug label Dec 5, 2020
@itfranck itfranck self-assigned this Dec 5, 2020
@itfranck itfranck added this to the v4.0.0-preview3 milestone Dec 6, 2020
@itfranck itfranck removed this from the v4.0.0-preview3 milestone Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant