Handling Chromelogin Popup window using OATS - selenium

enter image description hereHow to handle Chrome login popup.. I have a Situation where:
-> there is a button, and when it is clicked, it creates an authentication popup; now I can not append username and password to it as URL is dynamic.
-> Also I have to verify whether the pop up is displayed, then have to enter credentials and submit.

Related

how to secure html page with simple javascript code?

I need a simple javascript code that I'll put inside the html page and do the following:
When a user enters the page, a popup appears that asks to enter a password.
If the correct password is entered, the user will see the window content.
If the wrong password is inserted, the popup will say: "wrong password, try again"
And if a user hit the "cancel" button,
it will do nothing, and the page will stay blank without content until the user hits the refresh button or the back button to the previous page and will try to enter the "secure" page again,
It doesn't need to be complicated or too secured.
The content of the page that I want to secure is not sensitive.
thanks.

Blue Prism - text box login and password entered but website says please enter user name and password

I am just started learning BP - I have spied the the login text box like user name and password;
when I run the application it enters the user name and password that I have specified in the data items correctly and then click on LOGIN button; but website throws that
-please enter username
- please enter password
So, I feel that website didnt really recognize the text that BP entered in both fields thus it thrwos the error; any idea what else can be done here?
I have a wait stage as well
1. Launch website
2. Wait
3. Write stage to username & pwd
4. wait stage
5. click on LOGIN button.
on step#3 I tried before that focus/centre click or double as well before writing the text into the textbox but none worked.

Selenium C# Webdriver How to detect if button is clicked

I am using selenium with IE to automate web testing. My webpage fills out a form and finally clicks a button. Code to click button is
driver.FindElement(By.CssSelector("td.ne-fieldvalues > input[type=\"button\"]")).Click();
8 out of 10 times, it Clicks but other time click command is never executed.
Is there way I can check if button was indeed clicked ? something similar to checkbox
if (!driver.FindElement(By.CssSelector("input[type=\"checkbox\"]")).Selected)
driver.FindElement(By.CssSelector("input[type=\"checkbox\"]")).Click();
I tried .Displayed and .Enabled and both these properties are always true.
Thanks for help.
To ensure that an action is performed on a click of a link or button, it is best to verify the resultant state of application. For eg. if I click on 'Log in' button after entering valid username and password, it will take me to my homepage, verify that homepage has loaded, else fail the click event. In case of invalid username/password, verify the warning message on login page itself.
To summarize, you have to validate the response to verify click event on any web element.
The least you can do is ensure that the element is clickable using ExpectedConditions.elementToBeClickable():
// In Java
WebDriverWait wait = new WebDriverWait(driver, timeOut);
wait.until(ExpectedConditions.elementToBeClickable(locator));

cocoa login window navigation using button click

I am doing code in cocoa with objective c. I have made login window with username and password. I want to show another window using button click on login form. So user first input username and password and then click on submit button it will close this window and open new window with passing this username and password to that new window.
Kindly suggest how to do code ?
Thanks

tvOS Login screen Done button callback

tvOS provides a very simple and basic way to login user. Just put some text fields like email and password field and when you press on that I will open a new screen where you can enter first email then press Continue and then you enter the password and then there is a Done button.
I am facing a hard time in figuring out that when done is pressed how can I get the callback for that. So that I start authenticating the user credentials.