D
D
danythere2018-11-15 20:38:12
JavaScript
danythere, 2018-11-15 20:38:12

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();
          
        });

I open the photo from the user's profile and then scroll further.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Sundukov, 2018-11-22
@alekciy

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 question

Ask a Question

731 491 924 answers to any question