[wtr-general] How do i drag Element to the Page?

2011-12-09 Thread ash
Hi, I am facing problem on dragging element to the page. Any help would be appreciated. Thanks -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general

[wtr-general] Re: Unable to click tab in IE/FF

2011-10-15 Thread ash
Hi, Below is my portion of html code. I want to click TestSettings tab. div id=testnavigation style=float:left;left:33px ul id=testtablist li id=test_tab_settings class=test-current a title=testSettings onclick=Pages.go('testdisplaySiteSettings', 1); return false; href=# span

[wtr-general] Re: Selecting a url from an array

2009-09-16 Thread ash
Apologies but I think it was me formatting my command incorrectly rather than you suggesting incorrect format. Thanks again for your help. Cheers...Ash On Sep 15, 11:47 pm, orde ohil...@gmail.com wrote: Ash - glad you got it working. Regarding the regular expression, SciTE recognizes

[wtr-general] Re: Selecting a url from an array

2009-09-14 Thread ash
Orde, that didn't work I'm afraid. Karim, what would be the correct format? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com

[wtr-general] Re: Selecting a url from an array

2009-09-14 Thread ash
Got it to work now after several iterations. .detect is now giving me the url I need. So how do I select this url? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send

[wtr-general] Re: Selecting a url from an array

2009-09-14 Thread ash
OK, so I am a plonker. Just needed to store the result of my .detect as a variable then use $browser.goto. Hope I haven't wasted anybody's time. Cheers...Ash On Sep 14, 10:05 am, ash ashbr...@gmail.com wrote: Got it to work now after several iterations. .detect is now giving me the url I

[wtr-general] Selecting a url from an array

2009-09-11 Thread ash
I am using the following to collect all the links on a page and now need to select a particular link to click on; $browser.links.each do |l| #Relative link if (l.href.first == /) $url = $browser.url + l.href[1..-1] else $url = l.href end if

[wtr-general] Checking all links on a web page

2009-06-05 Thread ash
with; $browser.links.each { |l| puts l.to_s } So I am just looking for a loop I suppose, inside which each link can be clicked and checked before hitting back to try the next one. Cheers...Ash --~--~-~--~~~---~--~~ You received this message because you are subscribed

[wtr-general] Re: Checking all links on a web page

2009-06-05 Thread ash
Thanks for that Felipe. As far as validation goes I think my only option is to check that pages visited are not error pages; maybe checking for existnce of page cannot be found text. On Jun 5, 2:48 pm, Felipe Knorr Kuhn fkn...@gmail.com wrote: Hello, The code posted by Željko will work only

[wtr-general] Re: Checking all links on a web page

2009-06-05 Thread ash
Again, thanks Felipe. Looks like the solution I need. I will report back when I have had a chance to script and test. Cheers...Ash On Jun 5, 3:25 pm, Felipe Knorr Kuhn fkn...@gmail.com wrote: Ash, If you don't need to be authenticated in the app, this thread might help you: http

[wtr-general] How to click on text/images/links within a vidPane

2009-05-20 Thread ash
I have been struggling with a section of my script for some time now where I generate what appears to be a pop up with 2 options for moving on. Having unsuccessfully tried many different pop up handling methods I am now a little stuck. Looking at the html the 'pop up' is referred to as a

[wtr-general] Re: How to work with popups?

2009-05-15 Thread ash
There are now a number of threads regarding pop ups including those referring to javascript alerts. I have successfully scripted checks for the 'OK' button on an alert but am now struggling with an alert that has different options and would gratefully receive any advice out there. On May 15,

[wtr-general] Re: Logging to file with Firefox

2009-05-13 Thread ash
Any one tried producing their own FireWatir logger? FireWatir doesn't support logging like Watir does. You need to write your own logger for that. You can add a JIRA ticket for this. - Angrez --~--~-~--~~~---~--~~ You received this message because you are

[wtr-general] Re: Logging to file with Firefox

2009-05-12 Thread ash
Full script with line numbers (followed by the full error); 1 #-# 2 require 'watir' 3 require 'test/unit' 4 require 'example_logger1' 5 6 class TC_go_to_homepage Test::Unit::TestCase 7 8 def start 9 Watir::Browser.default =

[wtr-general] Logging to file with Firefox

2009-05-11 Thread ash
missing? Cheers...Ash --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http

[wtr-general] Stripping url

2009-05-01 Thread ash
help; new_url = ie.url[/(.*)\//] although this strips everything after uk/. I just need to strip out ?variable. My question is really; What does this mean? [/(.*)\//] Cheers...Ash --~--~-~--~~~---~--~~ You received this message because you are subscribed

[wtr-general] Re: Stripping url

2009-05-01 Thread ash
Spot on, thanks. I don't really know Ruby yet but using your advice I got it working. My new code; require 'watir' test_site=http://www.blah.com/uk/home.asp?src=ash; ie = Watir::IE.new ie.speed = :fast ie.goto test_site url=ie.url url_splitted=url.split(?) if url_splitted[0] == http

[wtr-general] Re: click_no_wait and click! not working javascript popup

2009-05-01 Thread ash
popup = WinClicker.new popup.makeWindowActive(hwnd) popup.clickWindowsButton(Windows Internet Explorer, OK, 30) end Where should I put the 'sleep'? Obviously I may be missing the point so feel free to shout at me if necessary. Cheers...Ash

[wtr-general] Re: FireWatir 1.6.2 unittests don't run

2009-04-29 Thread ash
be gratefully appreciated. Cheers...Ash --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines