From: Marc G. <mgu...@ya...> - 2007-10-01 15:25:01
|
Dominique de Waleffe wrote: > We are writing stuff to support execution of selenium scripts on htmlunit. ??? what would be the interest? > The case I am trying to solve now is that of loading a static page which > contains an iframe where the application loads its stuff and finding > elements of this iframe... > > The script recorded with selenium-IDE simply visits the page, which > loads the application part into the iframe, then tries to select an > element (a selectbox) which is in the iframe. > > open mypage > assertTitle myPage > select dropDownInIframe > > Those step execute directly with SeleniumIDE as if the iframe DOM were > directly available. > > However, when doing this trivially, all I have in html is the iframe > element but not its contents.... not sure to understand. If a page contains an iframe tag, then it won't contain the code located in this iframe. To see the content of the iframe you have to look at the enclosed window and at its enclosed page. This is is nothing special to HtmlUnit, you have exactly the same when you look at the page source in your "normal" browser. > How do you think I should go about supporting this iframe handling with > htmlunit? iframe is supported since a long time ;-) Marc. -- Blog: http://mguillem.wordpress.com |