WEIRD issue

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Nono
Posts: 20
Joined: Wed Oct 02, 2013 11:19 am

WEIRD issue

Post by Nono » Tue Nov 29, 2016 5:08 pm

Hi guys,
So the weirdest thing...this button (see snapshot attached),that looks like a button and behaves like a button, causes my test to fail every single time due to this weird error:

"Item 'Ranorex8_0Repository.Observer80.AddBannerButton' is no Button.
The element does not support the required capability 'button'. "

I've never seen it before. Do you know what do?
You do not have the required permissions to view the files attached to this post.

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: WEIRD issue

Post by krstcs » Tue Nov 29, 2016 5:30 pm

Try changing the XPath from a /button to a /buttontag type. I don't know if that will help in this case, but sometimes it does. Also, you might check the repo element's properties (F4) and make sure that the element's type is set to buttontag.

This has been an issue for a while with buttontag elements. Ranorex is supposed to see buttontag and button elements as essentially the same, but there are instances where you have to specifically declare as a buttontag. Again, I don't know if that is the case here, but it is worth a try.
Shortcuts usually aren't...

Nono
Posts: 20
Joined: Wed Oct 02, 2013 11:19 am

Re: WEIRD issue

Post by Nono » Tue Nov 29, 2016 5:41 pm

krstcs wrote:Try changing the XPath from a /button to a /buttontag type. I don't know if that will help in this case, but sometimes it does. Also, you might check the repo element's properties (F4) and make sure that the element's type is set to buttontag.

This has been an issue for a while with buttontag elements. Ranorex is supposed to see buttontag and button elements as essentially the same, but there are instances where you have to specifically declare as a buttontag. Again, I don't know if that is the case here, but it is worth a try.

I've changed it to buttontag as you said and it totally worked!!!!!! Thank you so much :)

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: WEIRD issue

Post by krstcs » Tue Nov 29, 2016 5:44 pm

You're welcome! :D

Like I said, sometimes it works, and sometimes it doesn't...
Shortcuts usually aren't...