Getting value from text input field
Firstly, thanks for publishing this framework, it has a great amount of boilerplate functionality (like reporting/shared library) that is needed for a good test framework, and seems to work very well.
I am wanting to get back the value="" value for a text input field. Getting the element is no problem, however using get_element_source does not return anything (empty string).
I have successfully used the get_element_source for a div and then parsed the contents using regEx, however in this case the div contains many input fields, and it seems like it would be better (at least for me, in this case) to manage getting/setting values as individual elements rather than having to parse the value data out of the div for a getter, and then map that to the individual text field elements for the setter (write_
e.g.
<div class="column">
<label>
<input type="text" value="Johnny" name="FirstName"/>
</label>
<!--many more of these label/input field pairs in this div-->
</div>
This may boil down to a limitation in the structure of the HTML and/or WebDriver, however I thought WebDriver could handle this case on it's own like in actions.py's assert_
Thanks in advance for any suggestions/
-Jason
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Corey Goldberg
- Solved:
- Last query:
- Last reply: