I am making scrapes of data on the link page. The problem I have is that if you go down on the main page, you will see the results of the matches of the day already finished, and if you place the mouse over the result, a table appears. For whatever reason I am unable to make Python code work to get that table. I'm doing this
I get the list of nodes, each node being a match.
I get, within the node, the result element by doing
score=node.find_element_by_css('.red')
I place the mouse on the score element, I look for the table, and I print the obtained result
ActionChains(browser).move_to_element(score).perform()
TabScore=browser.find_element_by_id('winScore')
print(TabScore.get_attribute('outerHTML'))
What I get, however, is the element as if the action of placing the mouse on the element had not taken place.
>> <div id="winScore" style="position:absolute; z-index:8;top:100px;left:100px;visibility:hidden;" onmouseover="MM_showHideLayers('winScore','','show')" onmouseout="hiddendetail()"></div>
Clarify that the score element is correct. If I do score.text
or score.click()
the result matches, and executes the corresponding action to click on the result, which is to open a new tab, so the failure must be when making the ActionChains line, but I can not understand why what does not work.
PS: I have tried to do time.sleep(20)
between ActionChains and the query of the table, with the same result.