@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
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
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
ie.link(:index,ie.links.length).flash
___
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
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
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=6714messageID=19309#19309
___
Wtr-general mailing
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
How about this option?
inputLine = Reggie;12345;Phillipines
nameOnly=inputLine.split(/;/)[0]
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6488messageID=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=6498messageID=18482#18482
Try:
ie.button(:index,ie.buttons.length).click
-Ravi
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6471messageID=18331#18331
___
Wtr-general mailing list
Wtr
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 Scheduler as well
-Ravi
Try:
ie.send_keys({F5})
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6019messageID=16858#16858
___
Wtr-general mailing list
Wtr-general@rubyforge.org
15 matches
Mail list logo