CharlieTango 3 Posted February 14, 2017 Report Share Posted February 14, 2017 I have a Kijiji.ca bot that I made for a friend, and they recently updated their "pick your plan" page before posting a free ad, where I need to click a button but I can't seem to get it to work. I need to click the blue button using xpath in ExBrowser, but I just can't seem to get it to work. If you create a free account on kijiji and go here: https://www.kijiji.ca/p-post-ad.html?categoryId=759you will see this page. The following xpath used to work for me, but no longer does:x://form[@id=PostAdMainForm]//button[@color=blue] Any help is appreciated! Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted February 15, 2017 Report Share Posted February 15, 2017 //*[@id=PostAdMainForm]/div[1]/div/div/div/div/div[1]/div[3]/button 1 Quote Link to post Share on other sites
CharlieTango 3 Posted February 15, 2017 Author Report Share Posted February 15, 2017 //*[@id=PostAdMainForm]/div[1]/div/div/div/div/div[1]/div[3]/buttonThanks TJ, works great! Quote Link to post Share on other sites
golfer57 0 Posted February 15, 2017 Report Share Posted February 15, 2017 TJ can you explain how you got that code? with all the div's I would like to understand how you came up with this, since i am starting to use exbrower also? thanks TJ. Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted February 15, 2017 Report Share Posted February 15, 2017 //button[contains(@color,"blue")]//button[contains(@color,"green")]//button[contains(@color,"red")] try the above as well. video how i got the xpaths i usedhttps://www.screencast.com/t/PPbi5M5hdsd 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.