Page 1 of 1

Ranorex can not find IE browser buttons

Posted: Sun Nov 06, 2016 10:36 am
by rastek
Hi,

As it can seen from xpath there is random id or sth like that but Ranorex still can not find the button that seen at bottom of the browser, is anyone can help me for that ? thanks.

/form[@title~'^TENCom\ Web\ -\ Internet\ Exp']
.//toolbar[@accessiblename='Notification']/button[@accessiblename='No']

/form[@title~'^TENCom\ Web\ -\ Internet\ Exp']
.//toolbar[@accessiblename='Notification']/button[@accessiblename='Close']

I also tried /form[] but did not help :(

Re: Ranorex can not find IE browser buttons

Posted: Sun Nov 06, 2016 1:38 pm
by odklizec
Hi,

As mentioned in previous posts, please post a Ranorex snapshot, where we can see the button in question and test the path. Thanks.

Re: Ranorex can not find IE browser buttons

Posted: Mon Nov 07, 2016 1:02 pm
by rastek
Hi odklizec ,
I am sending files, please have a look.

Thanks,
Rastek.

Re: Ranorex can not find IE browser buttons

Posted: Mon Nov 07, 2016 1:15 pm
by odklizec
Apparently, the "form" tittle is different in xpath from your initial post and the snapshot you just posted? Also, there is no need for ".//" in the xpaths you posted in the first post.

This xpath should work both for GENCom and TENCom:

Code: Select all

/form[@title~'^(G|T)ENCom']//toolbar/button[@accessiblename='Yes']
or something like this:

Code: Select all

/form[@title~'^GENCom' or @title~'^TENCom']//toolbar/button[@accessiblename='Yes']

Re: Ranorex can not find IE browser buttons

Posted: Wed Nov 09, 2016 7:12 am
by rastek
Hi odklizec, Thanks for the solutions.
In my first post I changed name bcos I see people do it on the forum.

I am sending two browser Allow buttons, one for IE and one for chrome, can you also help if you dont mind ?

Thanks,
Rastek.

Re: Ranorex can not find IE browser buttons

Posted: Wed Nov 09, 2016 8:31 am
by odklizec
Hi,

This should work both in IE and Chrome:

Code: Select all

/form[@title='Confirmation Required' or @title~'^multi1lb\.netas\.com\.tr:185']//button[@accessiblename='Allow']

Re: Ranorex can not find IE browser buttons

Posted: Thu Jan 19, 2017 12:02 pm
by rastek
Hi odklizec,
sory for late response but this does not work

/form[@title='Confirmation Required' or @title~'^multi1lb\.netas\.com\.tr:185']//button[@accessiblename='Allow']

Re: Ranorex can not find IE browser buttons

Posted: Thu Jan 19, 2017 12:18 pm
by odklizec
Well, it works for me for both provided snapshots? ;) If it does not work for you, then there is most probably something different in your actual environment?

I guess the that the form tittle has changed a bit in Chrome? Just make sure this part of xpath is still valid and eventually adjust it to make it a bit more general:
@title~'^multi1lb\.netas\.com\.tr:185'