I am trying to automate a java applet which is used to upload data to the app. Could someone please throw in some light towards this. I tried to use the piece of script mentioned below, but I would have getElementbyTagName.
Thanks, --- On Fri, 7/24/09, khaja shaik <[email protected]> wrote: From: khaja shaik <[email protected]> Subject: [wtr-general] Re: Watir support java applets To: [email protected] Date: Friday, July 24, 2009, 6:33 AM HI All, Good news today i have automated entering the text in java editor(java applets) using win320le. If our java editor (which running in browser) having the element id then this code works. require 'watir/WindowHelper' require 'win32ole' def test_addmission $ie.document.getElementByid ( "ELJ_detail_Control_elj_editor") sleep(3) $ie.send_keys ( "Thisistesttestdata.") end Thanks, Khaja shariff 2009/7/23 Chuck van der Linden <[email protected]> most of the attachements appear to be empty. (nor for that matter, am I sure that Elcom would be terribly happy if you posted all the code for their app.) Unless there is a test or demo site that could be accessed via the internet to sort of 'play' with the application we may be limited here to just giving you general advice as to how to approach solving the problem. Watir isn't hard to learn, at least not the basics. Unless you are new to web UI testing and also trying to learn how HTML, the DOM, javascript, HTTP, etc all work at the very same time, and/or are completely new to programming or scripting of any kind. in that case it can take weeks. If you are new to all of this, the expect to spend time learning some basic coding skills along with how web UI's work in general, because basically no matter what tool you use (and no matter what the tool vendor promises) trust me you WILL end up having to learn a far bit about web based technology to effectively write automation against it. The same goes for getting up to at least a basic level of profficiency in the language your tool uses be it Ruby, Java, C#, VB, or gods-help-you some propriatary vendorscript language. But if you are familiar with web UI testing and the tech behind it, and have at least a little experince coding or scripting in any language, then you can probably pick up water and ruby in a few hours (for the basics) by going through the tutorial. Enough to get yourself to a point where you could try a few things against your site to see if you can figure out the right .fire_event calls you'll ned to use to make it dance to your tune. If you have the foundational skills needed for the job, then I'd say a day or so maybe to be able to install ruby and watir, go through the tutorial and start trying stuff to see if you can get it to do what you need. depending on complexity of your site of course, and how rapidly you pick stuff up. On Jul 23, 3:31 am, "Rohan Ojha" <[email protected]> wrote: > Hi, > > Please look into the html attached, I want to select one of the available > approval plans and move it to the selected plans. > > Thanks, > Rohan Ojha > > _____ > > From: [email protected] [mailto:[email protected]] > On Behalf Of Željko Filipin > Sent: Thursday, July 23, 2009 1:16 PM > To: [email protected] > Subject: [wtr-general] Re: Watir support java applets > > On Thu, Jul 23, 2009 at 6:08 AM, Rohan Ojha <[email protected]> wrote: > > So does that mean I can still use Watir to drive this applet since the > > object seems to be available to me in the view source ? > > If you post some html and tell us what you want to do, we can try to do it. > > Željko > > image001.jpg > 43KViewDownload > > > > [ Attached Message ]From:<Saved by Windows Internet Explorer 8>To:Date:Thu, > 23 Jul 2009 14:05:46 +0530Local:Thurs, Jul 23 2009 1:35 amSubject:PECOS > Internet Procurement Manager, version 11.0 - Administration > > image_gif_part > 2KViewDownload > > image_gif_part > < 1KViewDownload > > image_gif_part > < 1KViewDownload > > image_gif_part > < 1KViewDownload > > text_css_part > 23KViewDownload > > text_css_part > 23KViewDownload > > application_octet-stream_part > 3KViewDownload > > application_octet-stream_part > < 1KViewDownload > > > > > > text_css_part > 5KViewDownload > > application_octet-stream_part > 16KViewDownload --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~--- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: [email protected] To unsubscribe: [email protected]
