mifi / instauto

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

#109 Added second login button to click #110

Closed Luen closed 2 years ago

Luen commented 2 years ago

109 109

mifi commented 2 years ago

thanks for your PR. but I'm not sure how it would work. Did you test it? //button/div['Log In'] evaluates to <div class="_ab8w _ab94 _ab99 _ab9f _ab9m _ab9p">Log in</div> and you cannot click on a <div>

Luen commented 2 years ago

Yes, I test it once and it worked for me. I can delete the cookie file and try again.

Luen commented 2 years ago

It worked this time as well but it didn't use the fallback method as it did in the first test.

mifi commented 2 years ago

Ah, I know what's the problem. the problem is that in your html <div class="_ab8w _ab94 _ab99 _ab9f _ab9m _ab9p _abak _abb8 _abbq _abb-"><button class="_acan _acap _acas" type="submit"><div class="_ab8w _ab94 _ab99 _ab9f _ab9m _ab9p">Log in</div></button></div> the text is Log in. but the code checks for Log In (capital I). and apparently XPath is case sensitive. I will add a fix

Luen commented 2 years ago

Thank you