Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="loader-mask" data-bind="visible: false">
- <div class="loader"> Loading Form...</div>
- </div>
- <div class="form-group">
- <label class="control-label">Email ID:</label>
- <input type="text" name="username" class="form-control" placeholder="user@company.com" data-bind="
- value: loginHandler.userEmail,
- enterKey: signIn
- ">
- </div><!-- /.form-group -->
- <div class="form-group">
- <label class="control-label">Password:</label>
- <input type="password" name="password" class="form-control" placeholder="Passwords are case-sensitive" data-bind="
- value: loginHandler.userPassword,
- enterKey: signIn
- ">
- </div><!-- /.form-group -->
- <div class="text-right">
- <p><button type="button" id="qaSignIn" class="btn btn-default" data-bind="
- click: signIn,
- disable: loginHandler.isLoggingIn,
- continueOn: userLoggedIn,
- continueLink: { link: 'dashboard.html', params: {} }
- ">
- HtmlTextInput htmlInputUsername = (HtmlTextInput) loginPage.getElementByName("username");
- htmlInputUsername.setValueAttribute("myUserName");
- HtmlPasswordInput htmlInputPassword = (HtmlPasswordInput) loginPage.getElementByName("password");
- htmlInputPassword.setValueAttribute("myPassword");
- HtmlButton htmlButton = (HtmlButton) loginPage.getElementById("qaSignIn");
- loginPage = htmlButton.click();
- webClient.getOptions().setUseInsecureSSL(true);
- webClient.getCookieManager().setCookiesEnabled(true);
- webClient.getOptions().setJavaScriptEnabled(false);
- webClient.getOptions().setCssEnabled(true);
- webClient.getOptions().setRedirectEnabled(true);
- webClient.setAjaxController(new NicelyResynchronizingAjaxController());
- webClient.waitForBackgroundJavaScript(30000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement