Skip to content

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

Closed
@itfranck

Description

@itfranck

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')

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions