This is a migrated thread and some comments may be shown as answers.

Logon Dialog Chrome not working

3 Answers 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hugo
Top achievements
Rank 1
Hugo asked on 23 Oct 2012, 09:32 AM
Hi,

Starting with the examples supplied I made a small test, just loading a page that needs a logon, enter some text in a text box and click on a button to make a search.

It works on IE(9) and Firefox(latest) but in Chrome the logon box remains with both fields empty and the test fails with an error that it fails to find the control.

It's like it doesn't detect the logon dialog.

Thanks in advance, here is the code:

Settings mySettings = new Settings();
 
mySettings.Web.DefaultBrowser = browser;
  
Manager myManager = new Manager(mySettings);
  
myManager.Start();
  
myManager.LaunchNewBrowser();
  
myManager.DialogMonitor.AddDialog(LogonDialog.CreateLogonDialog(myManager.ActiveBrowser, "username", "password", DialogButton.OK));
myManager.DialogMonitor.Start();
 
myManager.ActiveBrowser.NavigateTo("url");
  
Element linkSearch = myManager.ActiveBrowser.Find.ByContent("Search");
myManager.ActiveBrowser.Actions.Click(linkSearch);
  
Element editSearch = myManager.ActiveBrowser.Find.ById("ctl00_ctl00_ContentPlaceHolderMain_txtSearch");
myManager.ActiveBrowser.Actions.SetText(editSearch, "Example");
 
Element radioCompanies = myManager.ActiveBrowser.Find.ById("ctl00_ctl00_ContentPlaceHolderMain_rbtnListFilterType_0");
myManager.ActiveBrowser.Actions.Check(radioCompanies, true);
 
Element buttonSearch = myManager.ActiveBrowser.Find.ById("ctl00_ctl00_ContentPlaceHolderMain__btnSearch");
myManager.ActiveBrowser.Actions.Click(buttonSearch);
 
Element linkResult = myManager.ActiveBrowser.Find.ByContent("Example");
myManager.ActiveBrowser.Actions.Click(linkResult);
 
myManager.Dispose();

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 26 Oct 2012, 09:14 AM
Hello Hugo,

It seems you are facing a problem introduced by Chrome 22 that we recently found and fixed. The fix is included in our latest internal build(2012.2.1022). You can download it from your Telerik account here: Public URL.

All the best,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
srini
Top achievements
Rank 1
answered on 27 Aug 2013, 09:43 PM
I have the following build installed on my machine 2012.2.1527.0. and I am still not able to handle the Login dialog in Chrome. I am not having this issue with IE9 or with FF latest. 
Should I use a different dialog handler for chrome specifically or something? Please advise. 
Thanks
Srini
0
Boyan Boev
Telerik team
answered on 30 Aug 2013, 11:05 AM
Hello Srini,

I am sorry you are experiencing this issue.

This is a know issue and it will be fixed in our SP1 which we are expecting by the end of September.

Google has changed the dialog structure completely and this is the reason of that issue.

Thank you for your understanding. 

Regards,
Boyan Boev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Hugo
Top achievements
Rank 1
Answers by
Plamen
Telerik team
srini
Top achievements
Rank 1
Boyan Boev
Telerik team
Share this question
or