Electron app dropdown selection

Ranorex Spy, Recorder, and Studio.
Posts: 5
Joined: Thu Jan 18, 2018 10:23 pm

Electron app dropdown selection

Post by akshayru » Tue Nov 12, 2019 9:15 pm

I am new to Ranorex and trying to Automate Electron framework based chrome app. When i am trying to Spy dropdown list i Ranorex detect only selected element and it doesn't show all elements list. If you look at below XPath the only thing different for dropdown elements is the accessible name, rest all path is same. My question is how do I select these elements, i don't want hard code it as it might have name change in future...

"/form[@title='PartsDiagnostics']/?/?/container[@accessiblename='PartsDiagnostics']/element[1]/element/container[3]/text[2]/?/?/element[@accessiblename>'Available Scanning Device']/element[1]"
DropDown.png (11.15 KiB) Viewed 387 times

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

Re: Electron app dropdown selection

Post by odklizec » Tue Nov 12, 2019 10:22 pm


This is a known Chrome limitation, regarding List items. You will have to use KeySequence, instead of mouse click. Check this post...
https://www.ranorex.com/forum/code-for- ... tml#p51870
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