Hello, I'm not an applescript expert and I've just spent a several hours pulling my hair out. Here's what I'm looking for.
We have a custom Cocoa based WebKit application. It's not the nightly webkit build and it is not Safari - it is a custom Cocoa application that has a WebKit component embedded in it. We'd like to automate acceptance tests against this application leveraging the work that has been done in safariwatir. I thought it might be as simple as copying the scripting dictionaries from Safari into my xcode project. I'm having trouble figuring out how to copy the Safari scripting dictionary and getting it into this custom application in order to automate with safariwatir. There is obviously more to this than I an see at the moment. If somebody can point me onto the right path on how to get the existing Safari scripting support built into our custom webkit application, I'll try to take it from there. thanks in advance for any help, On Tue, Apr 6, 2010 at 12:07 AM, Rats <[email protected]> wrote: > Firstly, I should have probably mentioned in my previous posts I am a > Watir newbie. However I have done a fair bit or programming so have > some knowledge when it comes to using Watir. > > Ok, my latest problem is to do with handling a windows file upload > dialog box. I've done searches through this NG and found that this is > a fairly common problem. The solutions I've come across suggest use > of .click_no_wait. > > I'm trying to write some code that will click the file upload button, > enter a file name (full path) in the file name field and then hit > enter. This is what I tried: > > ie.button(:name, "file_upload_button").click_no_wait > ie.send_keys("c:\test.txt") > ie.send_keys("{ENTER}") > > Unfortunately click_no_wait just flashes the button and the dialog box > does not pop up. I've tried click by itself and that opens the dialog > box but of course the rest of the script does not execute. > > Any ideas? > > -- > 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, reply using "remove me" as the subject. > -- John Goodsen RADSoft / Better Software Faster [email protected] Lean/Agile/XP/Scrum Coaching and Training http://www.radsoft.com Ruby on Rails and Java Solutions -- 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]
