The element does not support the required capability 'button'.

Ask general questions here.
Bilawal
Posts: 11
Joined: Wed May 26, 2021 9:32 pm

The element does not support the required capability 'button'.

Post by Bilawal » Mon Jun 14, 2021 3:53 pm

Hello Folks

I have button item on my web-application called ShowPlayer , by using Ranorex Spy -> Track , I got the Xpath of the button and had put in one of my root folder. but that button item does not worked and ranorex gave me the error
"The element does not support the required capability 'button'. when i execute my testcase.
Xpath of the button : .//button[#'showPlayer']
Why ranorex is not support this and not identified it as a button .??



Any leads
Last edited by Bilawal on Fri Jun 18, 2021 1:51 pm, edited 1 time in total.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: The element does not support the required capability 'button'.

Post by odklizec » Tue Jun 15, 2021 5:53 am

Hi,

This is a known and not yet solved Ranorex problem, which occasionally happens with web elements. The solution is to replace recorded/tracked 'button' element with 'buttontag', like this:

Code: Select all

.//buttontag[#'showPlayer'] 
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Bilawal
Posts: 11
Joined: Wed May 26, 2021 9:32 pm

Re: The element does not support the required capability 'button'.

Post by Bilawal » Tue Jun 15, 2021 11:14 am

Hi ,
Any documentation or details about this problem on ranorex forum or official website , where i can read the details ???

I tried to search out but unfortunately does not found that.

Thanks for the suggestion

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: The element does not support the required capability 'button'.

Post by odklizec » Tue Jun 15, 2021 11:31 am

Hi,

I'm afraid, there are no more details regarding this problem. But if you search this forum for a word "buttontag", you will find several posts discussing this topic.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Bilawal
Posts: 11
Joined: Wed May 26, 2021 9:32 pm

Re: The element does not support the required capability 'button'.

Post by Bilawal » Tue Jun 15, 2021 11:48 am

Does any has already raised this issue as a bug ?
is this issue is known to Ranorex Dev team?

Thanks I just saw several post regarding this issue in Ranorex Forum.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: The element does not support the required capability 'button'.

Post by odklizec » Tue Jun 15, 2021 12:27 pm

Yeah, I believe they are aware of this problem. Hopefully, it will be fixed soon?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Fergal
Certified Professional
Certified Professional
Posts: 455
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Re: The element does not support the required capability 'button'.

Post by Fergal » Mon Jun 21, 2021 5:38 pm

You might find that these types of errors are reduced by changing the "Adapter type" property for the associated repo item, from "Default" to "webelement".

anks-bd
Posts: 1
Joined: Fri Oct 22, 2021 11:45 am

Re: The element does not support the required capability 'button'.

Post by anks-bd » Fri Oct 22, 2021 12:22 pm

I cant find the Adaptor Type field, can you please help me with this?
Also I am trying to change the button to buttontag in the xpath but it is not identifying the element if I do that.
Is there any specific way we have to do this?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: The element does not support the required capability 'button'.

Post by odklizec » Mon Oct 25, 2021 7:34 am

Hi,

You can find Adapter Type in Repo Properties panel...
RepoProperties.png
As for your problem, please upload a Ranorex snapshot (NOT screenshot) so we can check the structure of your UI.
You do not have the required permissions to view the files attached to this post.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration