How to find Inspect Element

How to find specific inspect element.

1 Like

hi @Himanshu_Pratap_Rana

can you elaborate more? do you mean find the html code of a particular element?

Hello @Himanshu_Pratap_Rana ,

Are you trying to do a UI based automation and trying to find the slector?

Then you can use UI Explorer to get reliable selectors. There you can add and eliminate the attributes from teh selector.

I want only quantity value in inspect element

1 Like

can you show the whole thing? just hide those confidential values

Hey @Himanshu_Pratap_Rana

Just use Get Attribute activity and indicate that UiElement on the screen.

Once the element is indicated, you will get a list of attributes available on that element.

Just choose yours & save the output in a variable which can be utilized later.

Hope that helps.

Thanks
#nK

  • get attribute - selector to the element, attribute name: data-item
    • the returned string is JSON
  • deserialize JSON activity - myJObject
  • Assign Activity: intQuantitiy = myJObject(“quantity”).Value(Of Int32)