If you show us the HTML, we can show you a regexp (regular _expression_) that will match your doc id.

Try this:

  ie.ie.menubar = true

and see if you don't now have the option to view source.

Bret

On 5/24/06, Frank Legarreta <[EMAIL PROTECTED]> wrote:
I am testing a web based document management system that assigns a unique
"Document Id" to each document upon creation. Unfortunately viewing source
on the page is not an option, but
ie.html does give me the html source, however, in one continuous string.

Executing ie.show_all_objects on the page after creating a new document
results in a list of about a dozen document records with their unique
document id's (below represents the first record):

Name=
Id=
Checkbox
Name=DOCID-EFG-123-0
Id=remove
Value=on
Alt=
Src="">
Question: What would be the WATIR and/or RUBY syntax to get this 1st
occurrence of the "Document Id" (in this case DOCID-EFG-123-0) into a
variable called document-id and then back out to be used in subsequent
scripts that require the document-id as input?

Note: I was able to accomplish this using Selenium, but WATIR was more
versatile with things such as multiple pop-up window handling.




_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to