Skip to content

Support for Explicit wait (Wait-SeDriver -Element $El -Condition -Timeout) #125

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

Closed
itfranck opened this issue Aug 25, 2020 · 0 comments
Closed
Assignees
Milestone

Comments

@itfranck
Copy link
Collaborator

itfranck commented Aug 25, 2020

Support for explicit wait conditions to enable a more complex waiting behavior within the module

Wait-SeDriver -Element $El -Condition ElementIsVisible -Timeout 5 -PollingInterval 250

Wait-SeDriver (True / False )
Get-SeElement -WaitCondition (Will return element or $null when the specified condition is matched)

https://www.selenium.dev/selenium/docs/api/dotnet/html/Methods_T_OpenQA_Selenium_Support_UI_ExpectedConditions.htm

By locator

ElementExists
ElementIsVisible
ElementSelectionStateToBe
ElementToBeClickable
ElementToBeSelected
FrameToBeAvailableAndSwitchToIt
InvisibilityOfElementLocated
InvisibilityOfElementWithText
PresenceOfAllElementsLocatedBy
TextToBePresentInElementLocated
TextToBePresentInElementValue
VisibilityOfAllElementsLocatedBy

Remaining

AlertIsPresent
AlertState
StalenessOf
TextToBePresentInElement
TitleContains
TitleIs
UrlContains
UrlMatches
UrlToBe

(Determined using)

$ECM = [OpenQA.Selenium.Support.UI.ExpectedConditions] | Get-Member -Static
$ByElements,$Remaining = $ECM.where( {$_.Definition -like '*OpenQA.Selenium.By*'},'split')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant