Results 1 to 2 of 2
- 11-04-2009, 02:50 PM #1
Member
- Join Date
- Nov 2009
- Posts
- 1
- Rep Power
- 0
[SELENIUM] Retrieve the value of a hidden input type
I must make Selenium testing to check if the application works properly. I managed to get them all but one for which I must recover the value of a hidden input type.
Here is the html code generated:
Here is the code that does not work:XML Code:<form action="my.do" method="post" name="myForm"> ... <input type="hidden" value="2616950" name="id"/> ... </form>
Here is the error returned:Java Code:String myId = selenium.getValue("name='id'");
Java Code:10:49:30.831 INFO - Command request: getValue[name='id', ] on session 9dbb91fe3e914b778d07fc4ce97f53bd 10:49:30.865 INFO - Got result: ERROR: Element name='id' not found on session 9dbb91fe3e914b778d07fc4ce97f53bd
If someone has an idea,
Thanks.
- 11-04-2009, 03:32 PM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Similar Threads
-
retain value of input type file in a jsp file while being dynamically generated
By nidhi c in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 09-27-2009, 02:21 AM -
Hidden Button after paint()
By MuslimCoder in forum New To JavaReplies: 5Last Post: 09-14-2009, 05:52 PM -
Selenium Inspector - an open source library for simplifying automated testing for Web
By TeamDev in forum Java SoftwareReplies: 0Last Post: 07-23-2009, 06:50 PM -
Input type Check box
By jeeva in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 02-17-2009, 02:36 PM -
Input type Check box
By jeeva in forum Advanced JavaReplies: 1Last Post: 02-05-2009, 04:04 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks