我现在创建了一个差异图,我想为该图表添加工具提示,我创建了一条在图表上移动的线,现在我想将图表的值显示为工具提示,即x和y值以及这里是鼠标移动时在图表上的(日期,打开,关闭),任何参考或指导将非常有帮助。 jsfiddle
def login(self) -> object:
driver = self.driver
driver.get("https://www.instagram.com/")
time.sleep(2)
user_name_elem = driver.find_element_by_xpath("//input[@name='username']")
user_name_elem.clear()
user_name_elem.send_keys(self.username)
passworword_elem = driver.find_element_by_xpath("//input[@name='password']")
passworword_elem.clear()
passworword_elem.send_keys(self.password)
passworword_elem.send_keys(Keys.RETURN)
time.sleep(2)
login_button = driver.find_element_by_css_selector("button[type='submit']")
login_button.click()
time.sleep(2)