Answer the question
In order to leave comments, you need to log in
Selenium-webdriver not clicking element?
On Instagram, I'm trying to click on like by searching by class. The search finds a single element, but the click function does not work.
The click works when switching photos and when logging, but it doesn't want to accept a heart...
browser.findElements(by.className('glyphsSpriteHeart__outline__24__grey_9')).then(function(like){
console.log(like.length);
like[0].click();
});
Answer the question
In order to leave comments, you need to log in
I will support Maxim Fedorov about video recording.
I did this for such difficult cases. On the server, besides the headless browser, Xvfb was raised . Then through x11vnc you can watch what is happening right in real time. It usually happens that some element is simply not loaded (and implicitlyWait helps).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question