But I am still interested if something similar can be done with XPATH or CSS
edit: XPATH syntax is something like this
[[FOR_EACH_CSS]] >AT>[[CYCLE_INDEX]] >XPATH> ../following-sibling::td
now last thing I am missing is how to do it with CSS
@rekaa0251 What you can do is:
then get elements
add elements to an array
get elements (even if they are the same)
add them to the array
In the end, delete all duplicates, and you have the full list.
if you want to understand when to stop, either add a counter and if the elements are always the same after 10 times of scrolling then it's probably the end
@darkstone said in Get element attribute from custom interface:
@fox i mean i need to get $('element').val() and store it on a variable that can i used inside BAS
It is better to hang the handler on this element so that when it is changed, it writes the result to a global variable. In this case, the global variable will always contain relevant information:
@hifive said in CSS>Element-id>Match>text:
i need to click on an element. The text is "Activate"
Previously I can just click on element-id, without specifying the text.
Now the element id keeps changing ie different id for each login session.
I cannot click on the element-id anymore.
I think maybe i should match the text because the text does not change .. it is always "Activate"
Upon inspection, the html for this text is
<span class="status-text _spcontent-zha-10">Activate</span>
I tried these but didn't work:
How can I match and click?
Use the xpath text search selector