Ok, I can't reproduce. Here is what I've tried.
public class TextStreamPage {
private String _content = "nothing";
@Inject
private LinkSource _linkSource;
void onActivate(String content) {
_content = content;
}
TextStreamResponse onActivate() {
final String link =
_linkSource.createPageRenderLink("TextStreamPage",
true, "clicked").toAbsoluteURI();
return new TextStreamResponse("text/html",
"<html><body>Content:" +
"<div id='content'>" + _content + "</div>" +
"<a id='link' href='" + link + "'>click</a>" +
"</body></html>");
}
}
and this test:
@Test
public class TextStreamTest extends AbstractIntegrationTestSuite {
@Test
public void testPageLoad() {
open("/");
open("/textstreampage/test");
assertText("content", "test");
click("link");
waitForPageToLoad("2000");
assertText("content", "clicked");
}
}
Have you tried cutting the content of your response down to a minimum?
Maybe there is something in the page?
-- Josh
On Aug 19, 2010, at 8:42 AM, "Thiago H. de Paula Figueiredo"
<[email protected]> wrote:
> On Thu, 19 Aug 2010 12:07:29 -0300, Josh Canfield <[email protected]>
> wrote:
>
>> This is the code I wanted to see. Do you get the same result with
>> clickandwait (dropping the waitforpage of course)
>
> I forgot to mention that even selenium.open() in that page timesout after the
> launched Firefox instance shows the page. I guess somehow JavaScript isn't
> running in that page. Thanks for the tips, Josh!
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]