How do I access button control

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Posts: 1
Joined: Mon Jan 23, 2017 11:05 pm

How do I access button control

Post by nshah » Mon Jan 23, 2017 11:10 pm


I have following xpath but getting error that element does not support for this element.

Ranorex.Unknown oAdpt = oContainerRepo.TradeSation.StatusBar;

Button item1 = oAdpt.FindSingle<ListItem>("/form[@class='ORPLAT.EXE TRADESTATION']/element[@class='BCGPDockBar:400000:8:10005:10']/element/button?[4]"); :|

Any idea or suggestion?
You do not have the required permissions to view the files attached to this post.
Last edited by nshah on Tue Jan 24, 2017 4:04 pm, edited 2 times in total.

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

Re: How do I access button control

Post by odklizec » Tue Jan 24, 2017 9:20 am


Please post at least a Ranorex snapshot (NOT screenshot!) of the element in question. There is nothing anyone else can do or suggest without at least Ranorex snapshot (sample app would be even better). Thanks.
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