I have an application that depending on which client is using it, a button named Send Escalation Email is displayed, but it is in a different div depending on the client. Here is the path from Ranorex Spy:
/dom[@domain='agentwebdev']//div[#'capturescalltoolsboa']/div[2]/div/span/input[@type='button' and @value='Send Escalation Email']
The "div capturescalltoolsboa" can be anything for different clients "div capturescalltoolsabc" it is the button that I am trying to get to.
I have tried taking out and adding various parts of the path to make it "generic" but have not had any luck. Any suggestions?
Thanks for any help.
Jeff
Identify Button in Several Different divs
-
- Posts: 18
- Joined: Mon Sep 30, 2013 5:01 pm
Re: Identify Button in Several Different divs
Found the answer - I just needed to make it more generic than I thought - .//input[@type='button' and @value='Send Escalation Email'].