> @mainFrame.select_list(:name, 'availableItems').select(:index, 1) does not
> seem to do the trick.
This should work:
@mainFrame.select_list(:name, 'availableItems').getAllContents[0]
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyfo
ie.link(:index,ie.links.length).flash
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
print the text from 1st row, 2nd column of 5th table:
ie.table(:index,5)[1][2].text or
ie.table(:index,5)[1][2].to_s
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Another option is:
ie.links.length
ie.table(:index,1).links.length
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
I guess you do not need the 'gsub' part.
FYI, gsub('old_string','new_string') replaces old_string with new_string.
Hope this helps
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Try this:
new_url=base_url + '/' + ie.url.split('/').last.gsub('.aspx','')
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
If testing_URL is a variable, I guess, it should be used without the slashes
"//".
Or, this also may work:
$ie.link(:url => /#{testing_URL}/, :text => /More.../).click
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/l
Inspired by the suggestion given by Bret on a different thread :)
#---
require 'watir'
include Watir
# Lets setup our data so the code is easier to read
url = "http://www.google.co.uk";
search_string = "barry manilow"
target_url
names=ie.select_list(:id, 'ctlWorkflow_ddlname').getAllContents #array
name0=ie.select_list(:id, 'ctlWorkflow_ddlname').getAllContents[0] #single item
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Replace:
$mainF.contains_text(/myDates/)
with:
$mainF.contains_text("#{myDates}")
-Ravi
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
This also will work:
ie.table(:index,1).table(:index,1).flash
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6714&messageID=19309#19309
___
Wtr-general mailing li
You can not use both 'if 'and 'assert' together for this purpose. See:
http://rubyforge.org/pipermail/wtr-general/2006-February/004905.html
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6663&messageID=1914
How about this option?
inputLine = "Reggie;12345;Phillipines"
nameOnly=inputLine.split(/;/)[0]
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6488&messageID=18585#18585
_
I guess this one should work in recent versions of Watir:
ie.link(:html,/critere.symbol.symbole/).click
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6498&messageID=18482#18482
Try:
ie.button(:index,ie.buttons.length).click
-Ravi
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6471&messageID=18331#18331
___
Wtr-general mailing list
You need to make the scheduled job 'interactive'. It allows the job to interact
with the desktop of the user who is logged on at the time the job runs. I
typically schedule jobs through command prompt using "at /interactive ...". I
guess there is an equivalent in Sch
Try:
ie.send_keys("{F5}")
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6019&messageID=16858#16858
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://r
17 matches
Mail list logo