From: Raj S. S. <raj...@im...> - 2010-03-15 15:21:35
|
Hi All, My apologies if this question has been asked before, but even after a thorough search I could not find any related post. I am tiring to develop an application which would populate some HTML forms and submit them. The form I am interested in deep into the frame/frameset hierarchy, where the frames are defined using javascript, something like this <html> <head> <script language="JavaScript" src="/js/OCW.js"> </script> <title> Some title... </title> <script language="JavaScript"> //<![CDATA[ function... //]]> </script> </head> <frameset rows="69,*" cols="*" framespacing="0" frameborder="NO" border="0"> <frame src="/tf.jsp" name="tF" scrolling="NO"/> <frame src="/OC.do?task=fl" name="mF" scrolling="default"/> </frameset> </html> These frames have other frames as children defined in same format and somewhere it will contain the needed form. Now I am aware that I can get the frame data by using page.getFrameByName(frameName).getEnclosedPage() but this approach has two problem 1. Too many deeply nested frames 2. The site changes its implementation without notifying the users, so the application may fail anytime. So what I want is a method through which I can access the forms without explicitly calling the frames. Is it possible and if yes how. Regards, ________________________________ Impetus Technologies is participating at the CTIA Wireless 2010 from 23rd to 25th March 2010. Meet Impetus in Las Vegas to experience our mobile and wireless domain expertise. Click http://impetus.com/events to know more. Follow our updates on www.twitter.com/impetuscalling. NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference. |