I have create a macros to add contact info in Hubspot, where each contact first search using search filed whose path was
xpath=/html/body/div[2]/div/div/div/div[2]/div/div/div[1]/div/header/div/div[2]/div/div[1]/div/div/div/div/input
Now Hubspot html changed
and new path is
xpath=/html/body/div[3]/div/div/div/div[2]/div/div/div[1]/div/header/div/div[2]/div/div[1]/div/div/div/div/input
How can we achieve click on these kind of dynamic element
Hi in firefox and chrome there are more addons to detect multiple xpath, try to search a better xpath for your case.
There are some type of xpath more simply to detect, your xpatch it’s very complex to use.
I use the extension ChroPath to find other locators besides xpath that UIVision misses. Unless you have a static site that doesn’t change much, the full absolute xpath isn’t the best because it’s based on location and one little change to the site and it breaks. Try to use ID, name, text, link, etc:
https://ui.vision/rpa/docs/selenium-ide/click#changingid
1 Like