Firefox extension seems to be out of date

7 posts, 0 answers
  1. Adam
    Adam avatar
    5 posts
    Member since:
    Jun 2012

    Posted 13 Dec 2012 Link to this post

    I am trying to use the WebAii API to automate an instance of Firefox 17.0.1

    I've run the Telerik Test studio installer which seems to install the Firefox extension - I see the following listed under extensions:

    'Telerik Testing Framework - Firefox Http Client 2012.2.1026.0'

    However this version number does not sync with the version of the extension for the latest release that was installed to Chrome - this version of 2012.2.1204.0.

    I tried manually installing the Firefox extension by zipping up the /Telerik/Test Studio/Browser Extensions/Chrome folder... renaming to .xpi, and then dragging/dropping to the Firefox extensions page - but the same version of the extenion is reported to be installed.

    The real problem is that I cant execute a particular test with firefox.  The web application should follow a 302 redirect, but when using WebAii to automate this - the page just hangs at this step and eventually times out.  I'm also looking for troubleshooting steps to capture the WebAii log maybe?

    thanks.
  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 14 Dec 2012 Link to this post

    Hi Adam,

    The Firefox client is not updated with every build we release. 2012.2.1026.0 is the most current version.

    What is the exact error message you get when the test times out? Can you also share with us the code that is failing? It might be that you need to switch from a normal element click to a simulated mouse click.

    What exactly do you mean by "capture the WebAii log"? Capture it to what, what would you do with it?

    Regards,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Adam
    Adam avatar
    5 posts
    Member since:
    Jun 2012

    Posted 14 Dec 2012 Link to this post

    Thanks Cody.

    I would strongly suggest that you still increment the release version if there are no actual changes to the extension to avoid confusion on which extension version is installed.

    I ask about capturing the WebAii logs in order to troubleshoot the issue that I'm having with Firefox.  Maybe my understanding is wrong, but the WebAii framework can output trace/diagnostic information to a log file that I can view, right?

    Here's example code:

    var inputUserName = _automatedBrowser.Find.ById("txtUserName");
     var inputPassword = _automatedBrowser.Find.ById("txtPassword");
     
     var btnSubmit = _automatedBrowser.Find.ById("btnSubmit");
     
     inputUserName.SetValue("value", username);
     inputPassword.SetValue("value", password);
     
     _automatedBrowser.Actions.Click(btnSubmit);
     
    _automatedBrowser.WaitForFrame(new FrameInfo() { UseQuery = false, BaseURL = "Dashboard/" }, 60000);


    So I am navigating first to the root page which displays a login page which is hosted on an HTTPS site.  The code fills out the login form and then clicks the 'submit' button to login.

    The web application will then send a 302 redirect to go to another URL (different web site, using just HTTP) and load the 'Dashboard' url.

    The exact error I see is that the login form is submitted successfully, then Firefox displays the dialog about 'mixed content'.  THe WEbAii framework dismisses the dialog immediately, and then the browser just hangs and nothing happens.

    The WaitForFrame call eventually times out.

    This code works fine in Chrome and IE and automates the browser successfully.










  4. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 18 Dec 2012 Link to this post

    Hi Adam,

    ...the WebAii framework can output trace/diagnostic information to a log file that I can view, right?

    Yes it can. All you need to do is something like this:

    Log.WriteLine("Stuff for my log file");


    The output will look like this:

    [Trace] : Stuff for my log file

    THe WEbAii framework dismisses the dialog immediately...

    If you wish to stop it from doing this add this line of code:
    Manager.Current.Settings.UnexpectedDialogAction = UnexpectedDialogAction.DoNotHandle;

    This code works fine in Chrome and IE and automates the browser successfully.

    Would it be possible for you to send us a video of it working in one browser and how it fails in Firefox? Jing is a good free screen recorder.

    We'll also be glad to help isolate the cause of this problem if you can provide us some way of reproducing this problem. This can be done in one of two ways:
    1) The best option is to provide us direct access to your application. If you want to keep information confidential (e.g. username & password) you can send it to support@telerik.com and reference ticket 640294.
    2) The next best thing is to take trace of this logon sequence (without using Test Studio) using FiddlerCap. Please check "Store binaries" and "Decrypt HTTPS traffic" prior to starting the capture. Send us the saved .saz file (put it into a .zip first). We can use that to simulate your web server and may be able to reproduce the problem that way.

    Regards,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  5. Krishna kiran
    Krishna kiran avatar
    7 posts
    Member since:
    Nov 2012

    Posted 21 Dec 2012 Link to this post

    Hi

    I too installed the latest version 2012.2.1024 testing framework from telerik.

    The tests that was executing fine with 920 && 1022(internal build) are not working in 1024 build for firefox browser. 

    1) Unable to perform mouse click operation on hyperlink,spans,etc in the customs popups. Only focus and keypress is working.
    2) when trying to click on some controls it's clicking somewhere else in the window.

    PLEASE FIX THIS ISSUE ASAP.


    Thanks & Regards,
    Vairamuthu

  6. Krishna kiran
    Krishna kiran avatar
    7 posts
    Member since:
    Nov 2012

    Posted 21 Dec 2012 Link to this post

    Hi

    <correcting the build no>


    I too installed the latest version 2012.2.1204 testing framework from telerik.

    The tests that was executing fine with 920 && 1022(internal build) are not working in 1204 build for firefox browser. 

    1) Unable to perform mouse click operation on hyperlink,spans,etc in the customs popups. Only focus and keypress is working.
    2) when trying to click on some controls it's clicking somewhere else in the window.

    PLEASE FIX THIS ISSUE ASAP.


    Thanks & Regards,
    Vairamuthu

  7. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 27 Dec 2012 Link to this post

    Hello Krishna,

    I am sorry to hear you are running into this problem.

    Please try to calibrate again your browser or configure it manually according this article.

    Another thing you can try is disable and enable again the Telerik Testing Framework extension in Add-ons Manager. Click Tools > Add-ons (or Ctrl+Shift+A). What is the extension's version?

    As a last option please try to rerecord the non working steps.

    If the issue persists please record a short video to show us how exactly you are reproducing the issue. Jing is a good free screen recorder or send us please your test project if it is possible. This will be the fastest and easiest way for us to reproduce the problem and diagnose what is causing it.

    Hope to hear from you soon.
     
    Greetings,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top