Electron app dropdown selection

Ranorex Studio, Spy, Recorder, and Driver.
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]"
You do not have the required permissions to view the files attached to this post.

User avatar
Ranorex Guru
Ranorex Guru
Posts: 7470
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