hello so i’m trying to automate a process but i noticed that the input fields div changes from time to time might be due to me using vpn and new ip all the time ?
@Rico_DYellow Some websites e. g. Facebook change their ID and page structure on purpose to avoid automation. On many other websites this simply happens due to dynamic content or page updates in general.
If the structure changes like from div[2] to div[3] as in your case I would try to find a more robust XPath, like @newuserkantu suggested. Sometimes this is possible, but not always!
However, if more changes - or if I am lazy and need a quick solution - I usually simply switch to using visual automation with XClick | (image/OCR). This works always. The drawback is that it is slower than XPath-based macros. But for many macros run time is not a problem, so that is fine.
To solve some cases of dynamic IDs I had to use different xpaths that ui vision did not record, in some cases to create good automation you need an xpath, you can also combine 2 different xpaths together with the OR command and this allows you to more accurately identify an element.