Quantcast
Channel: Silk Test - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 625

Find all Xpath with wildcard and add to an array

$
0
0

Hello everyone,


I am using Mainframe and Rumba,

I am trying to find all RumbaLabels

 

This is my absolute path for a textfield with data.
desktop.<RumbaTextField>find("(\"Terminal - Micro Focus Rumba.\")//RumbaScreen//RumbaLabel[@caption='D-12345']"

 

this is what I came up with so far 

System.out.println(desktop.<RumbaScreen>find("Terminal - Micro Focus Rumba.Screen").find("//RumbaLabel[@caption='D-******']").getText());


I guess I only need to implement a for loop.

Now I need to fetch all "D-XXXXX" elements to an array/list


Could someone help me out?

Regards

Xsi


Viewing all articles
Browse latest Browse all 625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>