You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(6) |
Jul
(17) |
Aug
(18) |
Sep
(22) |
Oct
(16) |
Nov
(6) |
Dec
(11) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(11) |
Feb
(10) |
Mar
(34) |
Apr
(26) |
May
(6) |
Jun
(22) |
Jul
(14) |
Aug
(4) |
Sep
(47) |
Oct
(69) |
Nov
(23) |
Dec
(21) |
2005 |
Jan
(53) |
Feb
(33) |
Mar
(92) |
Apr
(65) |
May
(63) |
Jun
(57) |
Jul
(43) |
Aug
(132) |
Sep
(61) |
Oct
(75) |
Nov
(60) |
Dec
(130) |
2006 |
Jan
(74) |
Feb
(87) |
Mar
(101) |
Apr
(58) |
May
(54) |
Jun
(42) |
Jul
(31) |
Aug
(67) |
Sep
(61) |
Oct
(71) |
Nov
(28) |
Dec
(58) |
2007 |
Jan
(53) |
Feb
(50) |
Mar
(96) |
Apr
(66) |
May
(55) |
Jun
(130) |
Jul
(99) |
Aug
(115) |
Sep
(37) |
Oct
(78) |
Nov
(24) |
Dec
(70) |
2008 |
Jan
(94) |
Feb
(85) |
Mar
(197) |
Apr
(274) |
May
(119) |
Jun
(143) |
Jul
(193) |
Aug
(99) |
Sep
(160) |
Oct
(120) |
Nov
(178) |
Dec
(109) |
2009 |
Jan
(238) |
Feb
(169) |
Mar
(115) |
Apr
(109) |
May
(131) |
Jun
(167) |
Jul
(144) |
Aug
(193) |
Sep
(155) |
Oct
(154) |
Nov
(97) |
Dec
(127) |
2010 |
Jan
(108) |
Feb
(127) |
Mar
(176) |
Apr
(113) |
May
(130) |
Jun
(200) |
Jul
(115) |
Aug
(80) |
Sep
(92) |
Oct
(101) |
Nov
(124) |
Dec
(53) |
2011 |
Jan
(67) |
Feb
(144) |
Mar
(88) |
Apr
(60) |
May
(89) |
Jun
(54) |
Jul
(68) |
Aug
(81) |
Sep
(48) |
Oct
(40) |
Nov
(10) |
Dec
(20) |
2012 |
Jan
(21) |
Feb
(28) |
Mar
(17) |
Apr
(35) |
May
(41) |
Jun
(44) |
Jul
(68) |
Aug
(67) |
Sep
(89) |
Oct
(58) |
Nov
(47) |
Dec
(56) |
2013 |
Jan
(49) |
Feb
(28) |
Mar
(46) |
Apr
(31) |
May
(28) |
Jun
(37) |
Jul
(34) |
Aug
(52) |
Sep
(42) |
Oct
(108) |
Nov
(59) |
Dec
(56) |
2014 |
Jan
(41) |
Feb
(72) |
Mar
(46) |
Apr
(21) |
May
(19) |
Jun
(17) |
Jul
(15) |
Aug
(40) |
Sep
(11) |
Oct
(3) |
Nov
(5) |
Dec
(31) |
2015 |
Jan
(11) |
Feb
(12) |
Mar
(19) |
Apr
(19) |
May
(38) |
Jun
(54) |
Jul
(14) |
Aug
(42) |
Sep
(14) |
Oct
(16) |
Nov
(26) |
Dec
(14) |
2016 |
Jan
(3) |
Feb
(1) |
Mar
(24) |
Apr
(5) |
May
(15) |
Jun
(14) |
Jul
(33) |
Aug
(19) |
Sep
(8) |
Oct
(10) |
Nov
|
Dec
(2) |
2017 |
Jan
(16) |
Feb
(12) |
Mar
(23) |
Apr
(8) |
May
(11) |
Jun
(20) |
Jul
(21) |
Aug
(20) |
Sep
|
Oct
(6) |
Nov
(9) |
Dec
(2) |
2018 |
Jan
(7) |
Feb
(5) |
Mar
(6) |
Apr
(5) |
May
(1) |
Jun
(2) |
Jul
(2) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
|
Dec
(4) |
2019 |
Jan
(2) |
Feb
(2) |
Mar
(3) |
Apr
(4) |
May
|
Jun
(4) |
Jul
(9) |
Aug
(2) |
Sep
|
Oct
(4) |
Nov
(1) |
Dec
(7) |
2020 |
Jan
(2) |
Feb
(6) |
Mar
(9) |
Apr
(1) |
May
(1) |
Jun
(15) |
Jul
(1) |
Aug
(1) |
Sep
(2) |
Oct
(6) |
Nov
(3) |
Dec
(5) |
2021 |
Jan
(3) |
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
|
Jun
(1) |
Jul
(1) |
Aug
(3) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
(1) |
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(6) |
2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Alain B. <alb...@gm...> - 2014-12-20 10:29:28
|
Further to Rbi, For debugging, it's nice to write a utility class to println the AsXml of the pages because without that it's pain in the neck to travale in the Dom using the variable window of the IDE. I usually take at this point the opportunity to set The correct DOcType I want and store the different pages (for example AfterLoggin.html, AfetrClickBtnValid.html etc... in a folder where I put also all the ressource needed (particulaly the images which are by default not loaded) When I said Firebuf is your friend , The most difficult thing using Htmlunit is not Htmlunit but to understand the structure of the "site" we are testing or scrapping 2014-12-19 22:14 GMT+01:00 Ronald Brill <rb...@rb...>: > >Not its not a new tab in browser. Its an dialog box and not an alert. > > > > As far as i know, the concept of 'dialog box' is not available in html. > Can you please make clear, what kind of 'dialog box' you are talking about. > > There are serveral options: > * the javascript confirm() command (res=window.confirm(question);) > * javascript window.open() that opens a different browser window (usually > a small one) > * by using some kind of js library that does some js/css/iframe magic to > simulate a (modal) dialog (like this: > http://livedemo.exadel.com/richfaces-demo/richfaces/modalPanel.jsf#) > > Additionally it is a good idea, to dump the current page (asXml) after > each step into a separate file, to have a visual id of the current > situation. > > rbri > > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Ronald B. <rb...@rb...> - 2014-12-19 21:14:30
|
>Not its not a new tab in browser. Its an dialog box and not an alert. > As far as i know, the concept of 'dialog box' is not available in html. Can you please make clear, what kind of 'dialog box' you are talking about. There are serveral options: * the javascript confirm() command (res=window.confirm(question);) * javascript window.open() that opens a different browser window (usually a small one) * by using some kind of js library that does some js/css/iframe magic to simulate a (modal) dialog (like this: http://livedemo.exadel.com/richfaces-demo/richfaces/modalPanel.jsf#) Additionally it is a good idea, to dump the current page (asXml) after each step into a separate file, to have a visual id of the current situation. rbri |
From: hai <mah...@es...> - 2014-12-19 05:23:05
|
Hi , Thanks for your reply. *You have some kind of web application that is available by an HTTPS URL - correct? Ist this app public available on the internet? * Yes application runs on https url but not available over internet. *If you click on a button, the application opens another window (in your words a popup window) - correct? * Yes *Is it a new tab in the browser or a dedicated browser window or a dialog window or an alert window?* Not its not a new tab in browser. Its an dialog box and not an alert. Let's me post my code <code> import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.html.HtmlPage; import com.gargoylesoftware.htmlunit.html.HtmlForm; import com.gargoylesoftware.htmlunit.html.HtmlButton; import com.gargoylesoftware.htmlunit.html.HtmlButtonInput; import com.gargoylesoftware.htmlunit.html.HtmlRadioButtonInput; import com.gargoylesoftware.htmlunit.html.HtmlAnchor; import com.gargoylesoftware.htmlunit.html.FrameWindow; import com.gargoylesoftware.htmlunit.BrowserVersion; import com.gargoylesoftware.htmlunit.NicelyResynchronizingAjaxController; import com.gargoylesoftware.htmlunit.CollectingAlertHandler; import com.gargoylesoftware.htmlunit.AlertHandler; import com.gargoylesoftware.htmlunit.Page; import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.WebWindow; import com.gargoylesoftware.htmlunit.WebWindowEvent; import com.gargoylesoftware.htmlunit.WebWindowListener; import com.gargoylesoftware.htmlunit.html.HTMLParser; import com.gargoylesoftware.htmlunit.DialogWindow; import com.gargoylesoftware.htmlunit.ImmediateRefreshHandler; import com.gargoylesoftware.htmlunit.html.HtmlTextInput; import com.gargoylesoftware.htmlunit.html.HtmlInput; import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; import com.gargoylesoftware.htmlunit.html.HtmlPasswordInput; import org.openqa.selenium.htmlunit.HtmlUnitDriver; import com.gargoylesoftware.htmlunit.html.HtmlElement; import com.gargoylesoftware.htmlunit.ScriptResult; import com.gargoylesoftware.htmlunit.xml.XmlPage; import java.util.*; import java.net.*; import java.io.*; class Connect { final static LinkedList<WebWindow> windows = new LinkedList<WebWindow>(); public static void main(String[] args)throws Exception { java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit").setLevel(java.util.logging.Level.OFF); java.util.logging.Logger.getLogger("org.apache.http").setLevel(java.util.logging.Level.OFF); System.setProperty("jsse.enableSNIExtension", "false"); System.setProperty("com.sun.net.ssl.enableECC", "false"); final WebClient webClient = new WebClient(new BrowserVersion("IE","5.0 (compatible: MSIE 9.0; Windows NT 6.1; Trident/5.0)","Mozilla/5.0 (compatible: MSIE 9.0; Windows NT 6.1; Trident/5.0)",9)); webClient.addWebWindowListener(new WebWindowListener() { public void webWindowClosed(WebWindowEvent event) { System.out.println("a window is CLOSED: " + event.getOldPage()); } public void webWindowContentChanged(WebWindowEvent event) { System.out.println("Content has been changed :"+event.getWebWindow()); } public void webWindowOpened(WebWindowEvent event) { System.out.println("a NEW window opened: " + event.getNewPage()); windows.add(event.getWebWindow()); } }); webClient.setAlertHandler(new AlertHandler() { public void handleAlert(Page page, String message) { System.out.println("WebClient.handleAlert:" + "\n page : " + page + "\n message: " + message); } }); webClient.getOptions().setJavaScriptEnabled(true); webClient.getCookieManager().setCookiesEnabled(true); webClient.getOptions().setCssEnabled(true); webClient.getOptions().setUseInsecureSSL(true); webClient.getOptions().setThrowExceptionOnFailingStatusCode(false); webClient.setAjaxController(new NicelyResynchronizingAjaxController()); webClient.getOptions().setThrowExceptionOnScriptError(false); webClient.getOptions().setActiveXNative(true); webClient.getOptions().setAppletEnabled(true); webClient.getOptions().setPopupBlockerEnabled(false); webClient.getOptions().setRedirectEnabled(true); //System.out.println("version="+webClient.getBrowserVersion()); String url="<application URL>"; final HtmlPage page1 = webClient.getPage(url); final HtmlForm form = page1.getFirstByXPath("<form name>"); final HtmlTextInput userName = form.getInputByName("username"); final HtmlPasswordInput password = form.getInputByName("password"); userName.setValueAttribute("admin"); password.setValueAttribute("Passw0rd"); HtmlButton submitbutton=null; List<HtmlButton> buttons = form.getButtonsByName(""); for(int i=0;i<buttons.size();i++){ HtmlButton button = buttons.get(i); if(button.getAttribute("id").equals("SubmitButton")){ submitbutton = button; break; } } try { webClient.waitForBackgroundJavaScriptStartingBefore(10000); final HtmlPage page2 = submitbutton.click(); //after login to redirect to another page i am calling java script function String javaScriptCode = "cuesInvokeDrawerURL('dPolicyElements','java script function');"; ScriptResult result = page2.executeJavaScript(javaScriptCode); webClient.waitForBackgroundJavaScript(50000); result.getJavaScriptResult(); //Required button lies on frame final HtmlPage page2_1 = (HtmlPage)webClient.getCurrentWindow().getEnclosedPage(); final List<FrameWindow> window = page2_1.getFrames(); for(int i=0;i<window.size();i++) { final HtmlPage pageTwo = (HtmlPage) window.get(i).getEnclosedPage(); HtmlButtonInput narsCreate=(HtmlButtonInput)pageTwo.getElementById("Create"); final HtmlPage page2_2 = narsCreate.click(); HtmlForm form1 = page2_2.getForms().get(0); final HtmlTextInput name = form1.getInputByName("name"); final HtmlTextInput description = form1.getInputByName("description"); //clicking button on the create1 button which will invoke a dialog window HtmlButtonInput submit_device=(HtmlButtonInput)page2_2.getElementById("Create1"); final HtmlPage page2_3 = submit_device.click(); webClient.waitForBackgroundJavaScript(7000); System.out.println(page2_3.getWebResponse().getContentAsString()); break; } } catch(Exception e) { System.out.println(e); } /* */ //webClient.closeAllWindows(); } } </code> -- View this message in context: http://htmlunit.10904.n7.nabble.com/Dialog-Box-tp35073p35095.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |
From: Ronald B. <rb...@rb...> - 2014-12-18 18:39:05
|
Hi Mahesh, i'm still confused from all the stuff you wrote. If you really like to geht some help you have to be as precise as possible. You have some kind of web application that is available by an HTTPS URL - correct? Ist this app public available on the internet? If you click on a button, the application opens another window (in your words a popup window) - correct? What kind of window? Is it a new tab in the browser or a dedicated browser window or a dialog window or an alert window? You have to figure out that, because the handling of this kind of windows is different. And please post your sample code. Btw: > *webClient.waitForBackgroundJavaScript(7000);* This never opens a window it only waits for some javascript jobs to finish, so i guess, the window is opend from javascript. This might imply, that your code has to switch to the newly opend window. Hope that helps RBRi -------------------------- Wetator Smart web application testing http://www.wetator.org On Thu, 18 Dec 2014 04:54:40 -0700 (MST) hai wrote: > >Hi, > >Thanks for your reply. >When i open the application in fire fox , it is not throwing me any error >with respective to SSL. >Even i could see the pop up window. > >One more thing i would like to add is > >pop up window consits of java script and html code. > >When i click on the pop up window and print the result, it is showing me the >parent window plus child window java script only. > >To load the pop up window i am using the following command > >*webClient.waitForBackgroundJavaScript(7000);* > >Even i am using this *webClient.getOptions().setUseInsecureSSL(true);* > >Thanks & Regards > > > > > >-- >View this message in context: http://htmlunit.10904.n7.nabble.com/Dialog-Box-tp35073p35091.html >Sent from the HtmlUnit - General mailing list archive at Nabble.com. > >------------------------------------------------------------------------------ >Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >from Actuate! Instantly Supercharge Your Business Reports and Dashboards >with Interactivity, Sharing, Native Excel Exports, App Integration & more >Get technology previously reserved for billion-dollar corporations, FREE >http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: hai <mah...@es...> - 2014-12-18 12:05:13
|
Hi, Thanks for your reply. When i open the application in fire fox , it is not throwing me any error with respective to SSL. Even i could see the pop up window. One more thing i would like to add is pop up window consits of java script and html code. When i click on the pop up window and print the result, it is showing me the parent window plus child window java script only. To load the pop up window i am using the following command *webClient.waitForBackgroundJavaScript(7000);* Even i am using this *webClient.getOptions().setUseInsecureSSL(true);* Thanks & Regards -- View this message in context: http://htmlunit.10904.n7.nabble.com/Dialog-Box-tp35073p35091.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |
From: Alain B. <alb...@gm...> - 2014-12-18 09:50:09
|
Perhaps you can have a look at these links http://htmlunit.10904.n7.nabble.com/how-to-access-popup-windows-td25226.html http://stackoverflow.com/questions/5336280/why-doesnt-htmlunit-work-on-this-https-webpage http://stackoverflow.com/questions/17631933/obtaining-elements-from-javascript-pop-up-window-using-htmlunit The last one is saying the most important: there are differents approach, Firebug is your friend, use the network tab to see which is happening to display these pop up. If you have luck all the information could already be in the original page. But you have also a link if the problem is security related.. With my modest experience using HtmlUnit, we need everytime to accliamate to the programming usage of the site we are digging into. Regards Alain 2014-12-18 9:46 GMT+01:00 hai <mah...@es...>: > > Hi, > > Thanks for your reply. > > Let me explain clearly. > > I have one form which contains one button. On click of that button a pop up > will open. I need to access that pop window and read it contents. > > Initially i could not get pop up window even for my local application . But > then after i have kept one more jar file htmlunit-2.15 then i could not get > the result of pop up window. My local application runs on http protocol. > > <Output> > *a NEW window opened: null* > <html> > <head> > <title>CISCO ACS Child</title> > > </head> > <form name="main_page" id="main_page"> > <body> > <input type="text" id="ip" name="ip"> > </body> > </form> > </output> > > But the application which i need to work on is runs on https protocol. > > I want to know is how to handle https pop up windows. > > <output> > *a window is CLOSED: HtmlPage* > > Thanks & Regards > > > > > > -- > View this message in context: > http://htmlunit.10904.n7.nabble.com/Dialog-Box-tp35073p35089.html > Sent from the HtmlUnit - General mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: hai <mah...@es...> - 2014-12-18 08:57:15
|
Hi, Thanks for your reply. Let me explain clearly. I have one form which contains one button. On click of that button a pop up will open. I need to access that pop window and read it contents. Initially i could not get pop up window even for my local application . But then after i have kept one more jar file htmlunit-2.15 then i could not get the result of pop up window. My local application runs on http protocol. <Output> *a NEW window opened: null* <html> <head> <title>CISCO ACS Child</title> </head> <form name="main_page" id="main_page"> <body> <input type="text" id="ip" name="ip"> </body> </form> </output> But the application which i need to work on is runs on https protocol. I want to know is how to handle https pop up windows. <output> *a window is CLOSED: HtmlPage* Thanks & Regards -- View this message in context: http://htmlunit.10904.n7.nabble.com/Dialog-Box-tp35073p35089.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |
From: Alain B. <alb...@gm...> - 2014-12-18 08:47:37
|
I don't understand at ll what you intend to do and what problems you encounter. Could you detail... Regards Alain 2014-12-18 8:08 GMT+01:00 hai <mah...@es...>: > > Hi, > > Did any one have solution on this > > > > -- > View this message in context: > http://htmlunit.10904.n7.nabble.com/Dialog-Box-tp35073p35087.html > Sent from the HtmlUnit - General mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: hai <mah...@es...> - 2014-12-18 07:19:05
|
Hi, Did any one have solution on this -- View this message in context: http://htmlunit.10904.n7.nabble.com/Dialog-Box-tp35073p35087.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |
From: hai <mah...@es...> - 2014-12-17 05:55:59
|
Hi, Thanks for your reply. I could be able to access pop windows which contains http url but not https url for example i could see the output of modal dialog box a NEW window opened: null It is generating window listener <html> <head> <title>Test </title> </head> <form name="main_page" id="main_page"> <body> <input type="button" id="ok" name="ok" value="ok"> <input type="button" id="cancel" name="cancel" value="cancel"> </body> </form> -- View this message in context: http://htmlunit.10904.n7.nabble.com/Dialog-Box-tp35073p35086.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |
From: Shaun M. <sma...@gm...> - 2014-12-16 12:43:23
|
Sample URL: http://www.heatpressnation.com/sublimation-printers-ink.html Websocket URL: https://us22.zopim.com When calling that page, HtmlUnit never completes because of the websocket connection to zopim.com. How can I force the page to finish after a set timeout or identify the web socket and close it. Here is the meat of my code: try { URL url = new URL(strUrl); WebRequest webRequest = new WebRequest(url); WebClient webClient = new WebClient(BrowserVersion.FIREFOX_24); new WebConnectionWrapper(webClient) { public WebResponse getResponse(WebRequest request) throws IOException { System.err.println("Url: " + request.getUrl()); WebResponse response = super.getResponse(request); if(response.getContentType().equals("text/html") || response.getContentType().equals(null) || response.getContentType().equals("") || response.getContentType().equals("application/x-www-form-urlencoded")) { System.out.println(response.getWebRequest().getUrl()); } return response; } }; webClient.getOptions().setTimeout(10000); webClient.setJavaScriptTimeout(5000); webClient.setRefreshHandler(new ImmediateRefreshHandler()); webClient.getPage(webRequest); webClient.waitForBackgroundJavaScript(3000); } catch(Exception error) { System.err.println("Error: " + error.toString()); } |
From: Ahmed A. <asa...@ya...> - 2014-12-12 13:48:55
|
Hi, You need to know which elements are there, usually I use page.asXml(), or you can 'inspect element' in real browsers. Once you know the element ID/xpath, then you can manipulate it. (htmlPage.getElementById() or .getByXPath()). Ahmed From: hai <mah...@es...> To: htm...@li... Sent: Friday, December 12, 2014 12:59 PM Subject: [Htmlunit-user] Dialog Box Hi, Can you explain me how to handle dialog box using html unit. When i am clicking button ,dialog box is coming. I need to handle and read the contents . Is it possible using htmlunit. |
From: hai <mah...@es...> - 2014-12-12 13:00:42
|
Hi , It solved my problem. Thanks Helping a lot -- View this message in context: http://htmlunit.10904.n7.nabble.com/Error-while-accessing-https-web-site-tp35067p35074.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |
From: hai <mah...@es...> - 2014-12-12 12:09:00
|
Hi, Can you explain me how to handle dialog box using html unit. When i am clicking button ,dialog box is coming. I need to handle and read the contents . Is it possible using htmlunit. -- View this message in context: http://htmlunit.10904.n7.nabble.com/Dialog-Box-tp35073.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |
From: hai <mah...@es...> - 2014-12-12 10:35:00
|
How to handle modal dialog windows or pop up windows using HTML unit -- View this message in context: http://htmlunit.10904.n7.nabble.com/How-to-handle-modal-dialog-windows-or-pop-up-windows-using-HTML-unit-tp35072.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |
From: hai <mah...@es...> - 2014-12-12 10:34:07
|
How to handle modal dialog windows or pop up windows using HTML unit -- View this message in context: http://htmlunit.10904.n7.nabble.com/How-to-handle-modal-dialog-windows-or-pop-up-windows-using-HTML-unit-tp35071.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |
From: Ahmed A. <asa...@ya...> - 2014-12-10 16:06:37
|
Hi, The certificate is not trusted, you can use: webClient.getOptions().setUseInsecureSSL(true); Ahmed From: mahesh.sanka <mah...@es...> To: htm...@li... Sent: Tuesday, December 9, 2014 12:45 PM Subject: [Htmlunit-user] Error while accessing https web site Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.val idator.ValidatorException: PKIX path building failed: sun.security.provider.cert path.SunCertPathBuilderException: unable to find valid certification path to req uested target class Connect { public static void main(String[] args)throws Exception { final WebClient webClient = new WebClient(); //webClient.setRedirectEnabled(true); webClient.getOptions().setJavaScriptEnabled(false); webClient.getOptions().setCssEnabled(false); webClient.getOptions().setRedirectEnabled(true); final HtmlPage page1 = webClient.getPage("https://192.168.4.115/acsadmin/login.jsp"); final HtmlForm form = page1.getFormByName("cuesLoginForm"); final HtmlTextInput userName = form.getInputByName("j_username"); final HtmlTextInput password = form.getInputByName("j_password"); userName.setValueAttribute("acsadmin"); password.setValueAttribute("Passw0rd"); final HtmlSubmitInput button = form.getInputByName("cuesLoginSubmitButton"); final HtmlPage page2 = button.click(); webClient.closeAllWindows(); } } -- View this message in context: http://htmlunit.10904.n7.nabble.com/Error-while-accessing-https-web-site-tp35067.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: mahesh.sanka <mah...@es...> - 2014-12-09 11:55:05
|
Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.val idator.ValidatorException: PKIX path building failed: sun.security.provider.cert path.SunCertPathBuilderException: unable to find valid certification path to req uested target class Connect { public static void main(String[] args)throws Exception { final WebClient webClient = new WebClient(); //webClient.setRedirectEnabled(true); webClient.getOptions().setJavaScriptEnabled(false); webClient.getOptions().setCssEnabled(false); webClient.getOptions().setRedirectEnabled(true); final HtmlPage page1 = webClient.getPage("https://192.168.4.115/acsadmin/login.jsp"); final HtmlForm form = page1.getFormByName("cuesLoginForm"); final HtmlTextInput userName = form.getInputByName("j_username"); final HtmlTextInput password = form.getInputByName("j_password"); userName.setValueAttribute("acsadmin"); password.setValueAttribute("Passw0rd"); final HtmlSubmitInput button = form.getInputByName("cuesLoginSubmitButton"); final HtmlPage page2 = button.click(); webClient.closeAllWindows(); } } -- View this message in context: http://htmlunit.10904.n7.nabble.com/Error-while-accessing-https-web-site-tp35067.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |
From: Ronald B. <rb...@rb...> - 2014-12-07 09:40:20
|
Hi Alain, not really sure what you are like to do. I guess you have a datatable with a pager in your web app. The key idea of a pager is to display only a part of your result set. And that small viewport of the result set is the only stuff that was send out from the server. After switching the page a different part is send to the client. Or in short, the html table in yor page is always ony a small part of the whole dataset. Please keep in mind, that HtmlUnit simulates your browser; HtmlUnit works on the same html/css/javascript as your browser does. You can always open the page with your browser and use 'Show page source' to get an idea what data is availabe in your browser. Hope that helps RBRi On Sat, 06 Dec 2014 23:25:43 +0100 Alain BUFERNE wrote: > >I would like to iterate over the total number of a table but when I'm >using the methods to either get the rows collection or the rows number I >get the one referring to the where the paging is . I need the total >number to avoid playing with the pager to explore all the rows... > >--- >Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active. >http://www.avast.com > > >------------------------------------------------------------------------------ >Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >from Actuate! Instantly Supercharge Your Business Reports and Dashboards >with Interactivity, Sharing, Native Excel Exports, App Integration & more >Get technology previously reserved for billion-dollar corporations, FREE >http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Alain B. <alb...@gm...> - 2014-12-06 22:25:53
|
I would like to iterate over the total number of a table but when I'm using the methods to either get the rows collection or the rows number I get the one referring to the where the paging is . I need the total number to avoid playing with the pager to explore all the rows... --- Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active. http://www.avast.com |
From: Peng Li <pl...@us...> - 2014-12-03 16:18:39
|
OK, got you. Thanks Peng On 12/02/2014 10:24 PM, Ronald Brill wrote: > You see the normal log output that of course informs about is errors > because we test erred situations also. You have to look for failing > unit tests only. > ----- Reply message ----- > Von: "Peng Li" <pl...@us...> > An: <htm...@li...> > Betreff: [Htmlunit-user] Question about "mvn test" > Datum: Mi., Dez. 3, 2014 00:53 > > Hi There > > I am new to this list, when I ran "mvn test", HtmlUnit throws many > javascript errors, > can I ask if they are supposed to happen or there exist errors in HtmlUnit? > > Thanks > Peng > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: R. B. <rb...@rb...> - 2014-12-03 06:22:59
|
You see the normal log output that of course informs about is errors because we test erred situations also. You have to look for failing unit tests only. ----- Reply message ----- Von: "Peng Li" <pl...@us...> An: <htm...@li...> Betreff: [Htmlunit-user] Question about "mvn test" Datum: Mi., Dez. 3, 2014 00:53 Hi There I am new to this list, when I ran "mvn test", HtmlUnit throws many javascript errors, can I ask if they are supposed to happen or there exist errors in HtmlUnit? Thanks Peng ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Peng Li <pl...@us...> - 2014-12-03 00:25:53
|
Hi There I am new to this list, when I ran "mvn test", HtmlUnit throws many javascript errors, can I ask if they are supposed to happen or there exist errors in HtmlUnit? Thanks Peng |
From: Ronald B. <rb...@rb...> - 2014-11-30 19:17:31
|
Hi, as first step use the latest version available (you can download the latest build at http://build.canoo.com/htmlunit/). If the problem persists, you have to digg a bit deeper. Us a proxy server (like Charles http://www.charlesproxy.com/) to inspect the communicatio between your browser and the server. Then do the same for HtmlUnit (you have to configure the proxy as part of your webclient setup). Usuall the difference in the requests will guide you to the source of the problem - if HtmlUnit behaves different than a browser open a bug report. Thanks for using HtmlUnit. RBRi -------------------------- Wetator Smart web application testing http://www.wetator.org On Sat, 29 Nov 2014 06:03:12 -0700 (MST) lapoint wrote: > >Hello, > >im trying to save the captcha image from a site but after saving the image >im getting a different format than what is on the site - yes captcha will >change from each request but the image that i got is at a completely >diffrerent format.. > >example: when opened in a browser I see the 3-4 number format > ><http://htmlunit.10904.n7.nabble.com/file/n35023/Capture.png> > >now when i use html unit im getting this kind of format: > ><http://htmlunit.10904.n7.nabble.com/file/n35023/file.jpg> > >anybody has any idea on how will i get the same format or what the problem? > > > >-- >View this message in context: http://htmlunit.10904.n7.nabble.com/Getting-a-different-reCaptcha-image-format-tp35023.html >Sent from the HtmlUnit - General mailing list archive at Nabble.com. > >------------------------------------------------------------------------------ >Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >from Actuate! Instantly Supercharge Your Business Reports and Dashboards >with Interactivity, Sharing, Native Excel Exports, App Integration & more >Get technology previously reserved for billion-dollar corporations, FREE >http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: lapoint <phi...@gm...> - 2014-11-29 13:11:14
|
Hello, im trying to save the captcha image from a site but after saving the image im getting a different format than what is on the site - yes captcha will change from each request but the image that i got is at a completely diffrerent format.. example: when opened in a browser I see the 3-4 number format <http://htmlunit.10904.n7.nabble.com/file/n35023/Capture.png> now when i use html unit im getting this kind of format: <http://htmlunit.10904.n7.nabble.com/file/n35023/file.jpg> anybody has any idea on how will i get the same format or what the problem? -- View this message in context: http://htmlunit.10904.n7.nabble.com/Getting-a-different-reCaptcha-image-format-tp35023.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |