How to recognize web elements

Using the internal picker

  1. Click on “Pick New Element”

mceclip0.png

  1. Hover your mouse over the page to see the elements highlighted. Focus on your target and press Ctrl + X

  2. A pop-up appears to indicate that the element was captured. Press “Save”

mceclip2.png

Using XPath

  1. Go to the web page from which you need to select the element

  2. Right-click on the web element whose XPath you need to get

  3. Choose the option “Inspect”

mceclip3.png

  1. After identifying the element in the code, right-click on it and choose Copy → Copy full XPath

mceclip4.png

  1. On Studio Pro, choose Elements → Add new Element → Browser Element

mceclip5.png

  1. Add the element name and choose the option “Xpath”

mceclip6.png

  1. To finish, you need to paste the XPath value you copied from the web page on the “Set a value“ field:

mceclip7.png

Now you can use this element in your web activities.

Using CSS selectors

  1. Create a new Web Element as demonstrated in the XPath part, but choose the CSS Selector instead

  2. Go to the web page and press F12

  3. Select the element and click on Copy → Copy selector:

mceclip8.png

  1. Paste it into the web element “Value” field

mceclip0.png

Tip: There are many ways to interact with web elements using XPath and CSS. Find more examples in this web page.

Happy Automation with ElectroNeek!!

1 Like