mifi / instauto

Instagram bot / automation library written in Javascript for Node.js
799 stars 145 forks source link

fix "Save Info" pressButton #70

Closed adrien2p closed 2 years ago

adrien2p commented 2 years ago

The XPath contains() is not case insensitive which means that this element is never found.

adrien2p commented 2 years ago

Already included into the most recent PR

mifi commented 2 years ago

Great find, thanks!

mifi commented 2 years ago

Oh wait, I misread the change. Are you saying the dialog says "Save info" , instead of "Save Info"?

From google images it seems like it says Save Info:

stop-third-party-apps-you-never-authorized-no-longer-use-from-accessing-your-instagram-account w1456

I think I'll add a double check then

adrien2p commented 2 years ago

Yes this that its a lower i. I did a wrapper around XPath to be case insensitive, you can pass whatever string you want and it will be compared as case insensitive. That way, you dont have to bother at all with any string comparison. You can have a look in my repo