First of all, place the entire selector in a string type variable and pass the dynamic variables. Then check if the value is being replaced in the string. If it is as required, then pass it to selector of the activity @prashantP
Hi
kindly dont pass the variable here in the selector editor
the way you have mentioned like ’ " + B2.ToString + " ’ is perfect, but when we are trying to pass the variable to a selector, once after mentioning the variable in the selector, we need to copy the whole selector from selector editor and pass that as a string value between double quotes to the SELECTOR - PROPERTY in the property panel of Click activity "<app=’ …> parentid = ’ " + B3.ToString + " ’ tag =‘A’ "
like this between double quotes as a string to the SELECTOR property
this would work for sure
the reason is when we are adding the variable as it is in selector editor itself it wont take the variable and its value while clicking the element and thus gives us this error
even after passing the variable and the selector as a string to the property if that doesnt click then we need to check the selector and its attribute
kindly try this and let know for any queries or clarification
Cheers @prashantP
and pass it like a string variable here in this selector property between double quotes
“
”
here in the property panel (not in the SELECTOR EDITOR)
yah with @HareeshMR suggestion, i would term it like passing variables to the selector in place of attribute values is fine but avoid passing the nodes or elements for a selector. Pass it as a complete selector.
Open the browser page which you are trying to select in the background and then change the selector with asterisk(*) once and then validate. If it validates, then you can use * in that place
and why dont you pass the selector as a variable instead of passing directly. Kindly do that