{"id":107,"date":"2008-07-03T14:23:51","date_gmt":"2008-07-03T19:23:51","guid":{"rendered":"http:\/\/pessoal.org\/blog\/?p=107"},"modified":"2008-07-03T14:23:51","modified_gmt":"2008-07-03T19:23:51","slug":"follow-up-on-httpwatch-integration-with-selenium","status":"publish","type":"post","link":"https:\/\/pessoal.org\/blog\/2008\/07\/03\/follow-up-on-httpwatch-integration-with-selenium\/","title":{"rendered":"Follow-up on HttpWatch integration with Selenium"},"content":{"rendered":"<p>Simon Perkins of Simtec Ltd (makers of the <a href=\"http:\/\/httpwatch.com\">HttpWatch<\/a> plugin for Internet Explorer that I mentioned before) was kind enough to get in touch with me via email about my wishlist for YSlow \/ HttpWatch \/ AOL Pagetest.<\/p>\n<p>He wasn&#8217;t familiar with Selenium, but said that it might be possible to hook up HttpWatch to retrieve performance data dynamically. He pointed to a <a href=\"http:\/\/www.marekj.com\/2008\/04\/using-httpwatch-with-watir\/\">blog post<\/a> describing how to do so with <a href=\"http:\/\/wtr.rubyforge.org\/\">Watir<\/a>, an automated web testing tool written in Ruby. Simtec even has a <a href=\"http:\/\/httpwatch.com\/rubywatir\/\">tutorial about this<\/a> on their own web site.<\/p>\n<p>While that does sound interesting, it looks like Watir interfaces with HttpWatch with a COM object on Windows, and that&#8217;s how it gets the performance information.<\/p>\n<p>The way to do this integration with <a href=\"http:\/\/selenium.openqa.org\/\">Selenium<\/a> would be to expose a set of JavaScript APIs (maybe the same set of objects available through the COM layer?), so one could write JavaScript code to export the HttpWatch information. That&#8217;s really what I would love to see.<\/p>\n<p>If that was available, I could write a simple <a href=\"http:\/\/selenium-rc.openqa.org\/\">Selenium RC<\/a> test suite in PHP, remote control a set of browsers from my Linux box, and get access to this performance data from HttpWatch by simply running some JavaScript function.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Simon Perkins of Simtec Ltd (makers of the HttpWatch plugin for Internet Explorer that I mentioned before) was kind enough to get in touch with me via email about my wishlist for YSlow \/ HttpWatch \/ AOL Pagetest. He wasn&#8217;t familiar with Selenium, but said that it might be possible to hook up HttpWatch to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[37,28,3,31,36],"tags":[],"_links":{"self":[{"href":"https:\/\/pessoal.org\/blog\/wp-json\/wp\/v2\/posts\/107"}],"collection":[{"href":"https:\/\/pessoal.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pessoal.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pessoal.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pessoal.org\/blog\/wp-json\/wp\/v2\/comments?post=107"}],"version-history":[{"count":0,"href":"https:\/\/pessoal.org\/blog\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"wp:attachment":[{"href":"https:\/\/pessoal.org\/blog\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pessoal.org\/blog\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pessoal.org\/blog\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}