How can I use regex for li element in the full path ?

Ask general questions here.
rastek
Posts: 185
Joined: Wed Aug 06, 2014 12:00 pm

How can I use regex for li element in the full path ?

Post by rastek » Mon Aug 18, 2014 8:11 am

Hi,
I have a select menu (dropdown list) and I want users to use my "click to select" recording by changing a parameter, `presence` parameter.

I am using Ranorex with an another program and I dont want users to give all tiny parameters.

This is the full path of my seen in the other program
/dom[@domain='47.168.150.63:8580']//ul[#'presence_select-menu']/li[1]//a[@innertext='Connected']

every element in the list (presence) has an li number, only changin innertext is not enough also "li" has to be change,

I tried li[.*] and li[*] but did not work


How can regex li so that user can select presence without playing with the li element ? Thanks

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: How can I use regex for li element in the full path ?

Post by Support Team » Wed Aug 20, 2014 12:48 pm

Hi rastek,

I’m afraid that I do not fully understand your issue. May I ask you to answer following questions?
  • • What exactly is your “Click to select”-recording doing?
    • What is meant by “only changin innertext is not enough also "li" has to be change”?
Please try to explain which part of your RxPath should be dynamic.
Thank you in advance.

Regards,
Robert