Hi,
I use :
p_driver.execute_script("arguments[0].scrollIntoView()", post)
time.sleep(random.uniform(0.5, 0.8))
action.move_to_element(post).perform()
To make a mouse over and try to get elements.
I am trying to get the number of comments on instagram post from a page profile.
If you pass manually the mouse over a post, the numbers of comments or likes is displayed.
But when I try to do it by python, it doesn't find the element.
I tried the xpath from console "
$x(//article//li//span[string-length(text())>0]"),
It gives result when I freeze the browser with F8.
Obviously, action.move_to_element(post).perform() doesn't work and I suspect this version 4.3.0 which removed many functions like ActionChains from the Selenium version 3, didn't it?
Or Am I doing something wrong?