Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hello, how would you go about choosing a random element from a resource? (E.g. Setting with set variable action)
@HELP_ME or
[[RES]] = RMap("toster").random(1)
api to work with resources
@ericarias said in Getting consistent results with element seletors:
What is the best method to use to make sure that the elements are always found.
Just avoid using automatically generated selectors by BAS.
@ptt-bds Could you provide more details please. Which sites is the problem with and what action? Perhaps you could attach a test project so I can replicate your problem?
@bennettjimmy63 https://community.bablosoft.com/topic/4033/проверить-существование-в-ресурсе-удаление-по-значению/20
https://community.bablosoft.com/topic/10194/sf_modul - Resource_is_element
@dmitry21 said in Why is it impossible to get an attribute of an element:
Thanks, but how to make the selector point to the code with the link?
Learn to write yourself. There's a lot of information online.
@jayjay You need to wrap wait for css into ignore error action and only then process [[WAS_ERROR]] variable
alt text
Check ignore error documentation inside BAS:
0_1528304878313_IngoreError.png