pbahr
pbahr

Reputation: 1350

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

Upvotes: 3

Views: 887

Answers (2)

Stuti Verma
Stuti Verma

Reputation: 1069

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

Upvotes: 2

TEH EMPRAH
TEH EMPRAH

Reputation: 2058

Selenium does not allow attributes, that result to text, or plain text to evaluate into WebElement. Sad (no) but true.

Since Workfusion RPA wraps Selenium, you'll get the exceptions anyway.

Upvotes: 0

Related Questions