how to edit element's fields

Best practices, code snippets for common functionality, examples, and guidelines.
IvanT
Posts: 37
Joined: Wed Feb 06, 2019 8:00 pm

how to edit element's fields

Post by IvanT » Mon Nov 04, 2019 6:36 pm

Hi. i have a question.
How to change field (GMSText) in element?
Attachments
how to change GMSText.rxsnp
(411.31 KiB) Downloaded 10 times

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

Re: how to edit element's fields

Post by odklizec » Tue Nov 05, 2019 8:28 am

Hi,

Basically, you need to create 3 repo elements, with these xpaths:

Code: Select all

/form[@name='GeoOptions']//container[@name='LongEdit']/container[@name='BorderPanel']/text[@name='GradNEdit']

/form[@name='GeoOptions']//container[@name='LongEdit']/container[@name='BorderPanel']/text[@name='MinNEdit']

/form[@name='GeoOptions']//container[@name='LongEdit']/container[@name='BorderPanel']/text[@name='SecNEdit']
Then try to use KeySequence or SetValue action to change/edit these fields. You may also need to use KeyShortcut (Ctrl+A) to select entire content of given field, before applying KeySequence or SetValue. Hope this helps?
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