From fcohen at pushtotest.com Wed Mar 5 09:34:43 2008 From: fcohen at pushtotest.com (Frank Cohen) Date: Mon Mar 10 21:37:44 2008 Subject: [ptt-users] Selenium users out there? Message-ID: <5DEFA774-804E-4D27-AB7B-6BF53E7690CB@pushtotest.com> Hi TestMaker Users: I'm using Selenium to build a test of an Ajax application. I will run the test in PushToTest (of course!) I'm using Selenium IDE 0.8.7 with Firefox 2.0.0.12 on a MacBook Pro. I am trying to create a Selenium functional test of an Ajax application. The app is available at: http: //partner.tvguide.com/mgov1/TVGuide/Default/ListingsGrid.aspx The ListingsGrid page offers two things that challenge me: 1) Clicking the Time Zone link (to the left of the login line at the upper left) opens a pop-up dialog box. Selenium IDE does not record the click on the Time Zone link. It does record my click of one of the time zone rows in the table that appears in the pop-up dialog box. 2) The Time Selector control is a horizontal bar of time periods. Users can click-and-drag the bar's "thumb" to change the time period. This is 100% Ajax and Selenium IDE does not record any of the click- and-drag events. I would be fine if the answer is that I need to add my own commands to the Selenium recording. Is there any advice or documentation you could point me to? -Frank Cohen http://www.pushtotest.com -- Frank Cohen, http://www.PushToTest.com, phone 408 871 0122 PushToTest, the open-source test automation company From Timothy.Jones at syniverse.com Tue Mar 11 05:51:33 2008 From: Timothy.Jones at syniverse.com (Timothy Jones) Date: Tue Mar 11 06:43:46 2008 Subject: [ptt-users] Selenium users out there? In-Reply-To: <5DEFA774-804E-4D27-AB7B-6BF53E7690CB@pushtotest.com> References: <5DEFA774-804E-4D27-AB7B-6BF53E7690CB@pushtotest.com> Message-ID: <044F2EDDF4FCA24A965ECAA66CB9345C019136E9@vdsexc02> Hi, Frank. I have been working on an end-to-end functional test for an internal web-based application based on Selenium 0.9.2 (the Java flavor). I used the recording feature to save a session initially, and saved it as Java source code. Since that initial recording, I have expanded the program to iterate through all the data that appears within the app, and it exercises each and every one of the GUI controls (mostly drop-down lists, but some numeric filter fields as well). I even put a Swing front end on it, with a set of tabs with Jpanels in them, each one doing a separate test against a target browser, and now it can run any number of simultaneous regression tests against my app. I am currently running this against the Windows XP browsers (FF, IE7, and Opera), Linux browsers (FF, Konqueror and Opera), and against a Windows 2000 VM instance (IE6). I did not run into any problems with events that would not show up in the recording, then again, I only made that first and only recording through the -IDE extension. Rather, because I found the API easy enough to use directly, the program has become proficient at screen-scraping through the Xpath and Javascript facilities. These are the only problems I have found so far: * I did find it necessary to run the selenium-server.jar with the -multiWindow switch, and I also found it necessary to explicitly run window.open('', 'newwindowname') prior to submitting a