Class: Sapphire::WebAbstractions::DropDown
- Inherits:
-
Control
- Object
- Control
- Sapphire::WebAbstractions::DropDown
show all
- Defined in:
- lib/sapphire/WebAbstractions/Controls/DropDown.rb
Instance Method Summary
collapse
Methods inherited from Control
#Click, #Equals, #Find, #FindAll, #FindAllBy, #FindBy, #FindParent, #FindWithoutWait, #FindWithoutWaitBy, #MouseOver, #initialize
Instance Method Details
#Selected ⇒ Object
9
10
11
12
|
# File 'lib/sapphire/WebAbstractions/Controls/DropDown.rb', line 9
def Selected
text = self.Find
text.value
end
|
#Selected=(value) ⇒ Object
4
5
6
7
|
# File 'lib/sapphire/WebAbstractions/Controls/DropDown.rb', line 4
def Selected= (value)
text = self.Find
text.send_keys value
end
|
#Set(value) ⇒ Object
19
20
21
22
|
# File 'lib/sapphire/WebAbstractions/Controls/DropDown.rb', line 19
def Set(value)
text = self.Find
text.send_keys value
end
|
#Text ⇒ Object
14
15
16
17
|
# File 'lib/sapphire/WebAbstractions/Controls/DropDown.rb', line 14
def Text
text = self.Find
text.attribute("value")
end
|