Watir question

hi,

If you want to overwrite HTML in Watir, you’ll need to use
Browser#execute_script and write some custom JavaScript.

hi, I don’t exactly understand, can you give me some example?

I mean you’re moving from a Ruby code environment into a JavaScript code
environment:
driver.execute_script “javascript code here;”

Since your iframe has a “src” attribute, you should edit that source if
you want to alter the content. I think there’s a way to do that in
JavaScript, but you’ll probably have to disassociate that document from
the source before you can edit it.

I’m not fluent enough in JavaScript to go into any further detail, but
I’m sure there are tips available if you Google “Javascript edit iframe
html” or something similar.

OK Thank you.