I use python3.6 and selenium3.6 to test charts from www.tradingview.com under Safari 11.When I want to zoom out the chart by clicking an invisible element before hovering the mouse on it.
driver.get('https://www.tradingview.com/chart/f8my3Ybg/')
zoom_out_button = driver.find_elements_by_class_name('zoom-out-right-button-control-bar')
Time.sleep(500)
ActionChains(driver).move_to_element(zoom_out_button).click().perform()
It comes out an error message
an element command could not be completed because the element is not visible on the page
I search the web and cannot find a way to correct it.The following is the code I analyzed.How would I realize such action on an invisible element? the HTML code I analyzed 1