steps = driver.find_element_by_xpath('//*[@id="current_steps"]') steps_Num = int(steps)
它不断返回错误 That int() function cant be used on webelement can only be used on strings 等。
沧海一幻觉
相关分类