Element of type "button" cannot be clicked

Bug reports.
mikgra
Posts: 7
Joined: Wed Jul 29, 2015 1:50 pm

Element of type "button" cannot be clicked

Post by mikgra » Wed Jul 29, 2015 2:00 pm

I´m trying to click on an add button over IE.
The issue is, that the element can be scanned and i´m also able to check the element if i
click on "Highlight". But while executing the test i get following error:

(please note, that I delete some sensitive data of the error message and the code)

Item 'TestcasesRepository.Online.N2__Aussendung_erfassen.Videoverbreitung.VideoHinzufuegen' is no Button.
The element does not support the required capability 'button'.

Here the Code:

Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Online.N2__Aussendung_erfassen.Videoverbreitung.VideoHinzufuegen' at Center.", repo.Online.N2__Aussendung_erfassen.Videoverbreitung.VideoHinzufuegenInfo, new RecordItemIndex(2));
repo.OTSOnline.N2__Aussendung_erfassen.OTS_Videoverbreitung.VideoHinzufuegen.Click();
Delay.Milliseconds(200);


I also tried to change the ClickFunktion instead of a "Left" to "Down" and "Up".

Operating System: Windows 7
Ranorex Version: 5.3.3.24484

Thank you in advance.

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

Re: Element of type "button" cannot be clicked

Post by odklizec » Wed Jul 29, 2015 3:01 pm

Hi,

It would be helpful, if you could post Ranorex Snapshot of the problematic "button".

Anyway, here are some forum posts regarding your issue...
http://www.ranorex.com/forum/difficulty ... tml#p29884
http://www.ranorex.com/forum/button-or- ... tml#p30564
http://www.ranorex.com/forum/cant-click ... tml#p23682
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

mikgra
Posts: 7
Joined: Wed Jul 29, 2015 1:50 pm

Re: Element of type "button" cannot be clicked

Post by mikgra » Thu Jul 30, 2015 6:09 am

Thanks a bunch. It works great know.

So for all of you, who have issues with buttons, try to change in the propertys of
the repository item which fails and change the "Adapter Type" to "buttontag".

Thanks again. That was a huge help.

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

Re: Element of type "button" cannot be clicked

Post by odklizec » Thu Jul 30, 2015 7:43 am

You are welcome. You see, most of the questions have been answered before ;)
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