Extracting text from the input field - using Webdriver

selenium-webdriver, webdriver

Solution

You need to get the field's value. For example: `element.get_attribute("value")`

Problem

How would I extract the text from the input filed? I tried using XPath/CSSSelector but I'm getting an empty text and since its a input field. Here is my html code: ``` <div> <input type="text" style="width:110px;" class="display"> </div> ``` Result: 1 to 50 of 195 rows Here is the screen shot of the input field:

Original source