I have tried in different ways to select the linke “Select All” using webpage but unable to click on the link.
Tried like
clickAndWait innerText’Select All
clickAndWait innerText=“Select All”
clickAndWait innerText=Select All
clickAndWait document.querySelector(‘a[href*=“Select All”]’).click()
clickAndWait document.querySelector(‘.ds-app-pointer-plain option-vertically-center option-text ng-binding’).click()
etc.
Can you help us the webpage script line for the same…
The input to clickAndWait is attribute=value. In your HTML code, there are only two attributes: class and data-ng-click. If there are no other elements with that combination of class names, you could target the Select All element with this pair:
Although I’m not sure if this will work because of the quotes. Omitting them might not work either because of the spaces.
So you can try the second attribute, data-ng-click:
clickAndWait data-ng-click=selectAll()
But again, this might not work because of the parentheses. You’ll have to try it to be sure.
If all else fails, you could use querySelector like you attempted. However, clickAndWait only takes an attribute=value pair. So you’ll need a different command. execAndWait will take an arbitrary JS statement and execute it. Here’s something that might be more robust:
All of this would be made so much easier if the element you want to click on had a concise ID. For example if it looked like <a id=“select-all” …>Select All you could simply write:
for button id i have the script
clickAndWait id=team-memeber-selection-done
The error i am seeing after the script execute is “Repeat View: Test Data Missing”
How to get out of this error and what is the correct WPT script to click on the Select All Select All
And also i observed some popup in the video but the same is not observed when we executed it manually in the chrome browser. How to handle this type of pop-up issues? Is there any way to clear the browser cache of the the location we are running? Enclosed the scree shot showing the pop up after page loading. The script is as below
The browser profile is completely cleared for each run (cache, cookies, everything).
As far as repeat view goes, if you need an action to run only during first view you can put it inside an if block (scripting page should have an example).