代码 定位到元素后打印出文字
def get_text(self): element=driver.find_element(By.CSS_SELECTOR, "#sidebar_bh [href*='vip']") print(element.text)
标签:定位,text,元素,element,查找,SELECTOR,CSS From: https://www.cnblogs.com/haha1988/p/17733166.html
代码 定位到元素后打印出文字
def get_text(self): element=driver.find_element(By.CSS_SELECTOR, "#sidebar_bh [href*='vip']") print(element.text)
标签:定位,text,元素,element,查找,SELECTOR,CSS From: https://www.cnblogs.com/haha1988/p/17733166.html