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

Add support for waiting for an element to be visible #47

Closed
Badgerati opened this issue Feb 12, 2020 · 0 comments · Fixed by #48
Closed

Add support for waiting for an element to be visible #47

Badgerati opened this issue Feb 12, 2020 · 0 comments · Fixed by #48
Assignees
Milestone

Comments

@Badgerati
Copy link
Owner

There are times when a page will hide certain inputs, only showing it when another input has been completed. In this case, the displaying of the hidden element might happen too slowly, causing Monocle attempt to edit a hidden input.

To get around this, a new Wait-MonocleElementVisible function will be added. When the element is visible, it will be returned.

Get-MonocleElement -Id 'input' |
    Wait-MonocleElementVisible |
    Set-MonocleElementValue -Value 'name'

Furthermore, Get-MonocleElement will have a new -WaitVisible switch added:

Get-MonocleElement -Id 'input' -WaitVisible | Set-MonocleElementValue -Value 'name'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant