ATF Click Custom Component by id, class or xpath.

Adr1GR
Mega Expert

Hello testers,

Im testing a form on a custom ui, and theres a point where i need to click on a map, were theres a lot of paths equal to the number of areas and is it only possible to click on the ones with "clickable" class, per example:

<g>
<path class="" data-mapped-key="123456" d="someCoordinatesOnSVG"></path>
<path class="clickable" data-mapped-key="234567" d="someCoordinatesOnSVG"></path>
<path class="" data-mapped-key="567890" d="someCoordinatesOnSVG"></path>
</g>

It is possible to click one of them?

 

Here is an example of the view:

ejemplo.png

Thank you.

1 REPLY 1

nickpqa
Tera Contributor

You may need to create a ATF Custome step for this. Please view below thread if this helps you

 

https://www.servicenow.com/community/developer-articles/create-a-custom-atf-ui-step-configuration/ta...

 

Don't forget to click the 'Helpfuls' button.