Does anyone know how to detect if a video is playing on a webpage (and the path for the video -- duration of the video)... We frequently change this event, depending on the client, and I need to be able to log what is happening on the page I check...
I am very aware of the AV object we use on the page... Our av object ("AV") we create has the properties AV.htmlCtrls.play, .pause, .stop, etc... It also have the property .path... But how would I capture this to log? Thanks, Thom -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Healy Sent: Thursday, February 09, 2006 1:51 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Declarative Watir scripts? Thanks Sergio... That is perfect... Exactly what I am looking for... A canned set of scripts to do web testing... No fuss, no muss... Regards, Thom -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sergio Pinon Sent: Thursday, February 09, 2006 1:00 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Declarative Watir scripts? Brian, I have been working on something exactly like this. And that tool you mentioned at the end of your posting would be perfect companion for it. Take a look and let me know how you think we can improve it. Right now I only use it for my company internally but I have no problems sharing it with others. Here is the source that I have been working from. Sergio -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Vallelunga Sent: Thursday, February 09, 2006 9:48 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Declarative Watir scripts? As I was typing in line 261 of very basic and repetitive Watir code, I that much of this scripting should be able to be done declaratively, especially when using the scripts to simply input values and check responses. Has anyone done anything like this? I envision an XML action list like: <watirActions> <action type='text_field' how='id' method='set' what='dateOfBirthTextBox' value='01/01/1980' /> <action type='select_list' how='id' method='select' what='stateDropDown' value='CA' /> <action type='button' how='value' method='click' what='Submit' /> <action type='expect_text' value='You live in California' /> <action type='expect_html' value='<b>Birthdate: 01/01/1980</b>' /> </watirActions> While this isn't much shorter than the actual script, it would allow for automation opportunities. I envision being able to point a program at an existing (completed) web page and have it analyze the page and generate most of this code. This sort of approach seems a natural extension of the Watir framework and I'm curious if anyone has attempted something like this? Thanks, Brian _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general