Question
1
Replies
144
Views
Posted: November 13, 2017
Last activity: November 6, 2018
Closed
How to know weather a control / Html ID is created or not ? :: Pega Robotic / OpenSpan
Hi Community,
I'm trying to identify weather a HTML control is created or not in a webpage.
The control is dynamic in nature and Id also changes dynamically [Not only Index]. Say for example A1 or B1.
I would like write script document.getElementById(A1) , if it is not null - i will proceed with A1 Id.
Note : If the control has fixed name, we can use IsCreated to verify. In this case, it is different.
Thanks in Advance.
Hello NagaP504,
In most cases, even if the control is dynamic, you can still use modify the match rules to match to it by using other properties like OuterHTML but it depends on the type of control that you are working with.
Can you provide more information on the type of control that you are interrogating? Once you have determined the correct match rules you can use waitForCreate method.