Results 1 to 1 of 1
Thread: using of htmlunit library
- 07-26-2010, 11:32 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
Similar Threads
-
i cannot give this page with htmlunit
By ansar313 in forum New To JavaReplies: 11Last Post: 05-20-2011, 08:38 PM -
using of htmlunit library
By ahmad_javadi in forum Advanced JavaReplies: 2Last Post: 07-26-2010, 11:43 AM -
use of pressAccessKey in htmlunit
By ahmad_javadi in forum New To JavaReplies: 1Last Post: 07-21-2010, 01:22 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