Hi Priya,
On 12/11/06, Krishnapriya Gelli <[EMAIL PROTECTED]> wrote:
> I have a page that has two frames and the menu is generated by
> javascript. I need to access a child element in the menu. Can somebody help
> me looking at the below code?
> [...]
> <script language="JScript"
> src="/insight/share/javascript/menuwrite.js"></script>
It looks like your HTML page is using Microsoft's own JScript, not
standard JavaScript. Those are two different languages and as far as I
know, Rhino (the JavaScript engine used internally by JWebUnit)
doesn't support JScript.
However, looking at the code you posted:
On 12/11/06, Krishnapriya Gelli <[EMAIL PROTECTED]> wrote:
> public void setUp() {
> getTestContext().setBaseUrl(
>
> "http://iiiiiiii:8042/insight/main/login.jsp?username=user&password=pass&locale=US&Submit2=Login");
> }
>
> public void testLogin() throws Exception {
> setScriptingEnabled(false);
> beginAt("/insight/main/process/add-user");
> log=new PrintStream(new FileOutputStream("adduser.txt"),true,"UTF-8");
> dumpHtml(log);
> log.close();
> }
>
> Problem:
> The adduser.txt has the HTML code for the login page and not the add-user
> page.
I don't understand why you are assuming that the problem has something
to do with a menu being generated by JScript? What happens if you type
those two URLs (the base URL and then
"[...]/insight/main/process/add-user") into a web browser by hand?
How is the login implemented? Does it require that the incoming login
request be an HTTP POST, not a GET?
Lasse
-------------------------------------------------------------------------
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