Hi,
1) It's an option of HtmlUnit to follow or not redirect. But I don't know if it's possible to disable redirect with Selenium. Does a real user can disable redirects in his browser ?
2) assertTextPresent() uses getPageText() that try to return only the text that a real user can see.
There is another methods on IJWebUnitDialog: getPageSource() that should return what a final user will see when using "view source" on his browser. But I think there is no method in WebTestCase that use it (only dumpHtml()). It could be a feature request to add a new method, that could be named assertSourceContains(String text) for example.
++
Julien
1) It's an option of HtmlUnit to follow or not redirect. But I don't know if it's possible to disable redirect with Selenium. Does a real user can disable redirects in his browser ?
2) assertTextPresent() uses getPageText() that try to return only the text that a real user can see.
There is another methods on IJWebUnitDialog: getPageSource() that should return what a final user will see when using "view source" on his browser. But I think there is no method in WebTestCase that use it (only dumpHtml()). It could be a feature request to add a new method, that could be named assertSourceContains(String text) for example.
++
Julien
----- Message d'origine ----
De : Daniel Lipofsky <[EMAIL PROTECTED]>
À : [email protected]
Envoyé le : Vendredi, 4 Août 2006, 9h58mn 00s
Objet : [Jwebunit-users] how to not follow redirects
De : Daniel Lipofsky <[EMAIL PROTECTED]>
À : [email protected]
Envoyé le : Vendredi, 4 Août 2006, 9h58mn 00s
Objet : [Jwebunit-users] how to not follow redirects
I am upgrading from jwebunit 1.2 to 1.3.
I have a submit to a page that returns
<head>
<meta http-equiv="refresh" content="0; url=""></head>
Under 1.2 it did not follow the redirect
but under 1.3 it does. I want to not follow.
Is there a way to control this?
Another question: assertTextPresent(String) used to find stuff
that was in comments like "<!-- My Test -->" but it does not
seem to do so anymore. Is there an assert test that will find
strings in comments?
Thanks,
Dan
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users
I have a submit to a page that returns
<head>
<meta http-equiv="refresh" content="0; url=""></head>
Under 1.2 it did not follow the redirect
but under 1.3 it does. I want to not follow.
Is there a way to control this?
Another question: assertTextPresent(String) used to find stuff
that was in comments like "<!-- My Test -->" but it does not
seem to do so anymore. Is there an assert test that will find
strings in comments?
Thanks,
Dan
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Jwebunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jwebunit-users
