Dynamically changing xpath ids

Post your questions and help other users.

Moderator: Martin

Post Reply
sowmya.mg
Posts: 1
Joined: 11 Apr 2020 05:23

Dynamically changing xpath ids

Post by sowmya.mg » 11 Apr 2020 06:56

Hi,
I am new to this automagica tool I was doing of task of automating filling webforms from excel through automagica,I am using browser by xpath method but xpath id is changing for every webpage,I tried using class also but class name are same for all field .Is there a way to select element through label in automagica?Can anyone help as soon as possible

BoBo
Posts: 129
Joined: 05 May 2014 12:45

Re: Dynamically changing xpath ids

Post by BoBo » 11 Apr 2020 16:06

Just out of curiosity, is it absolutely mandatory that you do this processing localy, at your android device?
Transfering your data to a PC and using powerfull scripting options like AutoHotkey (or equivalents) should do the trick, and would probably lower the stress on your mobile data plan. Once done it could return an error code or whatever confirmation msg you need.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Dynamically changing xpath ids

Post by Desmanto » 11 Apr 2020 18:42

@ sowmya.mg : I am confused how you fill the element using Automagic. Browser is usually sandboxed, so can't be accessed by Control UI properly. But if it can be accessed by accessibility, then it can be selected using Control UI.

Maybe you can tell us further how exactly you do it, screenshot or maybe form example (replace sensitive data with dummy data).
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply