Results 1 to 3 of 3
Thread: using of htmlunit library
- 07-26-2010, 11:31 AM #1
Member
- Join Date
- Jul 2010
- Posts
- 3
- Rep Power
- 0
using of htmlunit library
Hi
I am using of htmlunit library and Firebug addon for firefox and for example fill textbox in google and click search with this code:
public static void main() throws IOException{
WebClient browser;
browser = new WebClient();
HtmlPage page;
page=(HtmlPage) browser.getPage("www.google.com");
HtmlForm form=page.getFormByName("f");
form.getInputByName("q").setValueAttribute("search topic");
page=(HtmlPage) form.getInputByName("btnG").click();
}
but i have problem with componet like component that we write our mail content in the yahoo that probably use javascript instead of simple textArea
and i want help me that how i can fill this component outomatic with htmlunit library or other thing?
thanks
- 07-26-2010, 11:41 AM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
- 07-26-2010, 11:43 AM #3
Similar Threads
-
i cannot give this page with htmlunit
By ansar313 in forum New To JavaReplies: 11Last Post: 05-20-2011, 08:38 PM -
use of pressAccessKey in htmlunit
By ahmad_javadi in forum New To JavaReplies: 1Last Post: 07-21-2010, 01:22 PM -
Mp4 Library
By kingler112 in forum Advanced JavaReplies: 1Last Post: 04-27-2010, 02:54 PM -
I want to put the native library in library path in mac os x
By Hussain Ali in forum Advanced JavaReplies: 2Last Post: 02-24-2010, 07:55 AM -
Tell me jar file for library library org.bouncycastle.cms
By 82rathi.angara in forum New To JavaReplies: 10Last Post: 09-09-2008, 05:11 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks