Hi,
I'm trying to click a "Click offer" button. I have "Click at Found Image" working but it's not consistent.
I've tried finding the xpath via chrome and using that but it changes from page to page.
Here are two example urls:
https://opensea.io/assets/0x4db1f25d3d98600140dfc18deb7515be5bd293af/5335
https://opensea.io/assets/0x4db1f25d3d98600140dfc18deb7515be5bd293af/5254
Any help would be greatly appreciated!
The reason why your xpath didn't work for you I suspect is because the xpath is too specific, so you need to make something more general like the following that is common for the two links you share.
//button[contains(text(), 'Make offer')]
2 Likes
How did you learn xpath? It seems like Greek to me, and I'm a developer! Do you have any good online resources?
1 Like
Dan,
Actually I'm a curious person that like learning new things and immediately applying what I learn, and soon enough forget whether they look weird (or greek) and then start liking them somehow because they help to get thing done ( same goes for Applescript :} ). In fact, I get use to weird syntax, I even learn cryptic programming language like LISP ( Clojure https://clojure.org/ ). I just see beauty in them somehow.
You can try this resource
Xpath cheatsheet
1 Like
Thanks! And if you find yourself liking AppleScript, as opposed to JXA (JavaScript), then you truly are weird. 
2 Likes