I am trying to extract the text in an input box,
<input type="text" name="inputbox" value="name" class="box">
I started with
input = driver.find_element_by_name("inputbox")
I tried input.getText() but I got
AttributeError: 'WebElement' object has no attribute 'getText'
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…