seleniumxpathrpaworkfusion

Handle and Follow Links Using Web Element in RPA Express


I am using WorkFusion RPA Express ver. 1.1.4. While Web Web Elements can be used to get/set web elements by XPath, attributes cannot be retrieved using this method.

The framework expects to see one or more Web Elements as the result, but not the attributes. So, I end up receiving Selenium Exceptions.

I was wondering if there is a way to capture the attributes of the web elements using XPath keeping them as web elements.

Example:

<table>
  <tr>
    <td>
      <a href= "link1">Text 1</a>
    </td>
  </tr>
  <tr>
    <td>
      <a href= "link2">Text 2</a>
    </td>
  </tr>
</table>

Expected Result: (as a list of Web Elements)

link1
link2

Solution

  • In future releases of Workfusion RPA Express version 1.1.4 (1.2.0 is the latest version), Web elements does have a use element attributes option wherein you can the values like link1 and link2 (in your question). Please see the attached link for detailed feature in tool: https://kb.workfusion.com/display/RPAe/Web .

    enter image description here