Logon Dialog Chrome not working

4 posts, 0 answers
  1. Hugo
    Hugo avatar
    5 posts
    Member since:
    Oct 2012

    Posted 23 Oct 2012 Link to this post


    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.DialogMonitor.AddDialog(LogonDialog.CreateLogonDialog(myManager.ActiveBrowser, "username", "password", DialogButton.OK));
    Element linkSearch = myManager.ActiveBrowser.Find.ByContent("Search");
    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");
    Element linkResult = myManager.ActiveBrowser.Find.ByContent("Example");
  2. Plamen
    Plamen avatar
    8 posts

    Posted 26 Oct 2012 Link to this post

    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,
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. srini
    srini avatar
    2 posts
    Member since:
    Aug 2011

    Posted 27 Aug 2013 Link to this post

    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. 
  4. Boyan Boev
    Boyan Boev avatar
    1025 posts

    Posted 30 Aug 2013 Link to this post

    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. 

    Boyan Boev
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top