Hi,
- You must subscribe before posting
- Please read http://htmlunit.sourceforge.net/submittingJSBugs.html
Yours,
Ahmed
tariq wrote
<http://htmlunit.10904.n7.nabble.com/file/n32381/12-11-2013_5-00-20_PM.png>
*
> Hi all
>
> i am trying to scrap this page
> https://plus.google.com/115016587855962294424/about
> <https://plus.google.com/115016587855962294424/about>
> .
> Everything works fine but when i try to click show more to load more
> reviews nothing happens here is my code
*
>
> final WebClient webClient = new WebClient(BrowserVersion.FIREFOX_24);
> page =
> webClient.getPage("https://plus.google.com/115016587855962294424/about");
> assertEquals(200,page.getWebResponse().getStatusCode());
> assertEquals("OK",page.getWebResponse().getStatusMessage());
> System.out.println(page.getWebResponse().getStatusCode());
*
> Clicking show more here
*
>
> HtmlSpan advancedSearchAn = (HtmlSpan)
> page.getFirstByXPath("//*[@id=\"115016587855962294424-about-page\"]/div/div[1]/div/div/div[2]/div[3]/span[1]");
> page = advancedSearchAn.click();
*
> but nothing happens i even tried
*
> // webClient.waitForBackgroundJavaScript(10 * 1000);
> // webClient.setAjaxController(new
> NicelyResynchronizingAjaxController());
> // webClient.setAjaxController(new AjaxController(){
> // @Override
> // public boolean processSynchron(HtmlPage page, WebRequest
> request, boolean async)
> // {
> // return true;
> // }
> // });
>
*
> Any suggestions ?
*
--
View this message in context: http://htmlunit.10904.n7.nabble.com/google-page-javascript-Click-show-more-button-not-working-tp32381p32412.html
Sent from the HtmlUnit - General mailing list archive at Nabble.com.
|