
|
If you were logged in you would be able to see more operations.
|
|
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
|
Browser("title:=Untitled Page").IFrame("index:=1").Frame("index:=1") returns the error
undefined method `Frame' for #<WET::WebIFrame:0x2d24578> (NoMethodError)
But in the Browser Tree of 0.9.8, the tree shows the frames within the IFrame, but the checkbox object within the Frame is shown as by giving the description only of the IFrame and not the Frame.
Browser("title:=Untitled Page").IFrame("id:=outer").Checkbox("label:=CheckBoxText").set()
though the checkbox is contained within the Frame, the Frame object is not shown
|
|
Description
|
Browser("title:=Untitled Page").IFrame("index:=1").Frame("index:=1") returns the error
undefined method `Frame' for #<WET::WebIFrame:0x2d24578> (NoMethodError)
But in the Browser Tree of 0.9.8, the tree shows the frames within the IFrame, but the checkbox object within the Frame is shown as by giving the description only of the IFrame and not the Frame.
Browser("title:=Untitled Page").IFrame("id:=outer").Checkbox("label:=CheckBoxText").set()
though the checkbox is contained within the Frame, the Frame object is not shown |
Show » |
|
# the existence of the objects IFrame, Button, Checkbox, File, Image, Link, List, Radio,
# Textarea, TextField, Table, & Frame is checked using the following code.
require 'WET'
include WET
puts "IFrame ---> #{Browser("title:=Untitled Page").IFrame("index:=1").IFrame("index:=1").exists?()}"
puts "Button ---> #{Browser("title:=Untitled Page").IFrame("index:=1").Button("index:=1").exists?()}"
puts "Checkbox ---> #{Browser("title:=Untitled Page").IFrame("index:=1").Checkbox("index:=1").exists?()}"
puts "File ---> #{Browser("title:=Untitled Page").IFrame("index:=1").File("index:=1").exists?()}"
puts "Image ---> #{Browser("title:=Untitled Page").IFrame("index:=1").Image("index:=1").exists?()}"
puts "Link ---> #{Browser("title:=Untitled Page").IFrame("index:=1").Link("index:=1").exists?()}"
puts "List ---> #{Browser("title:=Untitled Page").IFrame("index:=1").List("index:=1").exists?()}"
puts "Radio ---> #{Browser("title:=Untitled Page").IFrame("index:=1").Radio("index:=1").exists?()}"
puts "Textarea ---> #{Browser("title:=Untitled Page").IFrame("index:=1").Textarea("index:=1").exists?()}"
puts "TextField ---> #{Browser("title:=Untitled Page").IFrame("index:=1").TextField("index:=1").exists?()}"
puts "Table ---> #{Browser("title:=Untitled Page").IFrame("index:=1").Table("index:=1").exists?()}"
puts "Frame ---> #{Browser("title:=Untitled Page").IFrame("index:=1").Frame("index:=1").exists?()}"
#####################################################################################
############### The outputs obtained is as given below ####################
IFrame ---> false
Button ---> false
Checkbox ---> false
File ---> false
Image ---> false
Link ---> false
List ---> false
Radio ---> false
Textarea ---> false
TextField ---> false
Table ---> false
undefined method `Frame' for #<WET::WebIFrame:0x2cf4fc8> (NoMethodError)
####################################################################