Waiting for selectors
-
Title: "waitingSelectors"
Version: 1.1
Data: waitingSelectors.zip
Consent to add a module to BAS: Yes.
Description: A module for waiting for several selectors at once-
The module is waiting for one of the specified selectors to appear, the search will be stopped immediately after finding any of the selectors.
-
Selectors >MATCH>, >CSS>, >XPATH> are supported. And also a selector for searching by image >img:threshold:scroll(noscroll) > base64
-
For each of the selectors, optionally, you can specify your own variable to save the result. All the results can be immediately obtained in a variable that is specified in the module settings, in this variable, in addition to the search results, there is information on whether the timeout occurred, how long the search lasted and the selector itself found.
-
For each selector, you can specify a visibility setting (it doesn't make sense to search by image). The visibility check is slightly improved compared to the built-in one.
version history:
-
-
i have been waiting for something like this for a long time please help me debug, thank you very much
-
@daunhonquangminh said in Waiting for selectors:
i have been waiting for something like this for a long time please help me debug, thank you very much
I didn't really understand you, what you need debug?
-
@UserTrue thanks for the module
having issues with selectors with IFRAME
looks like if there is a selector with IFRAME, all selector after the one with the IFRAME will be ignored.
hopefully can be fixed, thanks.
-
@Bcsteam Most likely you are right, I will fix it soon
-
@UserTrue Thanks :)
-
Я не смог эффективно применить этот модуль, пожалуйста, дайте мне небольшую демонстрацию , thanks uuuuuuuuu
-
@UserTrue
Thanks for checking,
please check this example attachedtest2212.xml
-
@Bcsteam I don't have an iframe on this page, I checked again on another page, here is your example. I don't have a problem test2212.xml
The module does not wait for all the specified selectors to appear, it stop searching as soon as any of them is found. Perhaps you have a problem that the module finds a selector faster that is not in the frame
-
@daunhonquangminh said in Waiting for selectors:
Я не смог эффективно применить этот модуль, пожалуйста, дайте мне небольшую демонстрацию , thanks uuuuuuuuu
-
1.1 - improved visibility check
-
@UserTrue Ok got it, my logic was wrong,
I assumed that its checking all selectors in the list, and result IF_EXISTS value for each one,
didn't take in consideration that its a WAIT module, and once it will find one of the selectors it will stop.
Thanks for clarifying that.
-
@UserTrue Just an idea
a multiple IF_EXISTS module, that will give the IF_EXISTS result of multiple selectors on the page,
that will search for each selector without stop searching as soon as any of them is found,
That way we can get an idea of which of the selectors from the list is exist on the page.it will definitely be useful for me :)