microsoft / EasyRepro

Automated UI testing API for Dynamics 365
MIT License
523 stars 289 forks source link

[BUG] Element Id "By.Id("passwordInput")" and "(By.Id("submitButton")" not found in "ADFSLoginAction" method inside WebClient class. #1274

Open Cecchetto90 opened 2 years ago

Cecchetto90 commented 2 years ago

Bug Report

The login procedure fails because "passwordInput" and "submitButton" ids not found on the login page.

The current version of the WebClient class, method "ADFSLoginAction" uses the following ids to insert password and execute submit action in the form:

driver.FindElement(By.Id("passwordInput")).SendKeys(args.Password.ToUnsecureString()); driver.ClickWhenAvailable(By.Id("submitButton"), TimeSpan.FromSeconds(2));

I Solved my problem updating in this way:

driver.FindElement(By.Name("passwd")).SendKeys(args.Password.ToUnsecureString()); driver.ClickWhenAvailable(By.XPath("//input[@type='submit']"), TimeSpan.FromSeconds(2));

Has anyone else encountered the same problem?

EasyRepro Version

UCI or Classic Web

Online or On Premise

Browser

Describe the bug

Special formatting / display

Code to reproduce

Expected behavior

Screenshots

Additional context

chandramohand commented 2 years ago

Is this issue resolve? Me too facing the issue regarding the Password and submit, workaround is there now and able to proceed.

Thanks