Hi,
When I try to capture browser html after I have interacted with form
fields,  browser#html still shows the form fields as they were when
loaded. For instance, for this html:

<form action="">
<fieldset><legend>Films you like</legend>
<div><label for="drama">Drama</label><input type="checkbox"
name="drama" id="drama" value="drama"></div>
<div><label for="action">Action</label><input type="checkbox"
name="action" id="action" value="action"></div>
<div><label for="comedy">Comedy</label><input type="checkbox"
name="comedy" id="comedy" value="comedy"></div>
</fieldset>
</form>

When I do something like:
# The checkbox is visibly set
ie.checkbox(:id => 'drama').set # => nil
screen_scrape = ie.html

If I were to write screen_scrape to a file and view it in a browser,
the checkbox shows unchecked. On looking at the source, the html
method returns @element.page_source, which makes me think that it
returns the html from when the page was loaded, and not the current
state of the browser. Is this true? If so, what alternatives do I have
to get more current html? Screenshots may not be an option right now,
because of business concerns.

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to