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

Dynamic Wait #133

Open
mrWh1te opened this issue Apr 25, 2021 · 3 comments
Open

Dynamic Wait #133

mrWh1te opened this issue Apr 25, 2021 · 3 comments

Comments

@mrWh1te
Copy link
Owner

mrWh1te commented Apr 25, 2021

Is your feature request related to a problem? Please describe.
Instead of statically waiting a few seconds after clicking a button for something to load, dynamically wait until an HTML node element exists in the DOM

Describe the solution you'd like
BotAction waitFor(htmlSelector: string)

implementation can be a for loop, wait 100ms, then check, wait 100ms, then check until found

Describe alternatives you've considered
Manually hard-coding larger wait times like 2-3seconds

@mrWh1te
Copy link
Owner Author

mrWh1te commented Apr 25, 2021

could potentially reuse wait() by adding support for the input type to be number (milliseconds) OR string (htmlSelector)

then depending on the input type, statically wait for a time period of loop until the HTML selector is found in the DOM

@mrWh1te
Copy link
Owner Author

mrWh1te commented Apr 25, 2021

what about a wait for text to appear

i.e. wait for the text "Submit" to appear in a DOM node element

@mrWh1te
Copy link
Owner Author

mrWh1te commented Apr 25, 2021

optional param waitTimeInterval = 100 in milliseconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant