From: Christoff, K. <kch...@no...> - 2015-12-02 15:35:37
|
Hello, I'm trying to automate a cloudera installation by using htmlunit-2.19. I've downloaded cloudera-manager-installer.bin from cloudera. After executing it, a cloudera manager installer web site is available at http://localhost:7180. I'm trying to navigate this web site and supply inputs using htmlunit-2.19 to complete my installation. I can use htmlunit to login and navigate to the page where I can enter the hostnames of what will become my hadoop cluster. After setting a textArea on this page with my comma-separated list of hostnames, I find and click a "Search" button on the page. The page, I believe, executes some javascript to go out and find these hosts. After finding them, the page is updated with a list of the nodes. At this point, a previously unavailable "Continue" button on the page becomes available. I'd like to click it to move to the next page and continue my installation. However, my java program never sees the updated list of nodes and I cannot move forward. I know that htmlunit normally does not wait for javascript to finish, so I've taken steps to allow for that. As you'll see in my attached code, I've: webClient.setAjaxController(new NicelyResynchronizingAjaxController()); and after clicking the "Search" button: webClient.waitForBackgroundJavaScript(10000); but I've not been successful. How can I capture the page updates and continue my installation? thank you, Kyle |