Is it possible to get the text that is currently set in a field using SST?
Asked by
Lisa Spurrell
I am attempting to use SST to change a text value for an element on my web page while storing the original value. Here is the flow:
1. Get the element I am looking for by name.
2. Store the value that is currently there (not sure how to do this).
3. Write new text to the element (change the value).
4. Continue with test.
....
5. Set value back to original.
myelem = get_element(name = "sample element")
# here's where I would like to store value
#origval = way to do this
write_textfield
# Run the rest of the test
write_textfield
Is this possible or is there some workaround I could use to store values that were set prior to my testcase running.
Thanks,
Lisa
write
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Lisa Spurrell
- Solved:
- Last query:
- Last reply:
To post a message you must log in.