Forum Discussion

nedbacan's avatar
nedbacan
Frequent Contributor
2 years ago

Need to find a content text of an attribue in CSS, should I use XPATH?

Hello, can someone help me,using the example below on how to find an attribute from the page element and copy the content text to a variable?   The end goal is to copy the result to a spreadsheet ...
  • rraghvani's avatar
    2 years ago

    Sorry nedbacan , I thought I was responding to your message but it was trevino912 !

     

    If your project is set to use XPath, then the Object Spy tool will show you the query e.g. "//a[.='< Home']"

     

    Also, if you use Keyword Testing and check the properties of the object, you will see the XPath that TC has identified.