Forum Discussion

jorgesimoes1983's avatar
jorgesimoes1983
Regular Contributor
11 years ago

Useful extensions for TestComplete web testing

I created this thread to share these magnificient extensions.

Instead of "Object Inspector" we can use it to speed up the process of getting object IDs.



Available for Chrome, Firefox, Opera



https://addons.mozilla.org/pt-pt/firefox/addon/web-developer/



Available for Internet Explorer



http://www.microsoft.com/en-us/download/details.aspx?id=18359
  • The following for REST Web Services:



    XHR POSTER in Chrome and Poster in Firefox



    Also in Firefox: Firebug (Web dev) and Firepath (XPath, CSS selectors and JQuery selectors)



    Nothing in IE



    Regards,

    Phil Baird
  • zakirhere's avatar
    zakirhere
    Occasional Contributor
    Thanks for the post.



    I use FireFinder of Firebug in FF browser. Very useful for creating and verifying the Xpath and CSS query selector we use.
  • Philip_Baird's avatar
    Philip_Baird
    Community Expert
    The following for REST Web Services:



    XHR POSTER in Chrome and Poster in Firefox



    Also in Firefox: Firebug (Web dev) and Firepath (XPath, CSS selectors and JQuery selectors)



    Nothing in IE



    Regards,

    Phil Baird
  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Thanks for sharing them, Jorge.


     


    I used to work with Firebug and Web Developer. They are very useful!


     


    BTW, do you know that they allow generating an XPath expression for the target object (at least, the simplest one)? There is a Blog article that demonstrates how to do this in Chrome's built-in extension: the link to the article.

  • jose_pita's avatar
    jose_pita
    Super Contributor
    Tanya, I tried that xpath method but it didn't work, can you tell me what's wrong with this code? I used Chrome to get the xpath expression






    var obj = Sys.Browser("firefox").Page("*vitacare*").EvaluateXPath("/html/body/div[1]/div[1]", true);


      if(obj && obj.Exists)


        obj.click();


      else


        Log.Message("obj does no exist")

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Jose,


     


    As a rule, the Page object contains html data inside the body tag. I guess you need to remove /html/body from the expression:


     




    var obj = Sys.Browser("firefox").Page("*vitacare*").EvaluateXPath("/div[1]/div[1]", true);


     if(obj && obj.Exists)


       obj.click();


     else


       Log.Message("obj does not exist")