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
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
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
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
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
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
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
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
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
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
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
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,
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
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 =
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
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
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
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
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
19 matches
Mail list logo