Identify Button in Several Different divs

Ranorex Studio, Spy, Recorder, and Driver.
jmckinstry
Posts: 18
Joined: Mon Sep 30, 2013 5:01 pm

Identify Button in Several Different divs

Post by jmckinstry » Mon Oct 07, 2013 8:36 pm

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

jmckinstry
Posts: 18
Joined: Mon Sep 30, 2013 5:01 pm

Re: Identify Button in Several Different divs

Post by jmckinstry » Tue Oct 08, 2013 7:51 pm

Found the answer - I just needed to make it more generic than I thought - .//input[@type='button' and @value='Send Escalation Email'].