Hi,
I am executing an http get which returns html including a hidden input element in the following format:
<input type="hidden" id="txtTestID" name="txtTestID" value="11"/>
I'd like to save the value 11 into a session variable for use in a subsequent call. I've tried:
.check(xpath("""//input[@id="txtTestID"]@value""").find.saveAs("testID"))
This doesn't seem to work, also tried without the @value. Am I doing something wrong, or is there a better way to do this? I've read that parsing html with a regular expression is a bad idea,
thanks,
Greg.