Class: Selenium::WebDriver::ShadowRoot
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Instance Chain:
self,
SearchContext
|
|
Inherits: | Object |
Defined in: | rb/lib/selenium/webdriver/common/shadow_root.rb |
Constant Summary
-
ROOT_KEY =
# File 'rb/lib/selenium/webdriver/common/shadow_root.rb', line 23'shadow-6066-11e4-a52e-4f735466cecf'
SearchContext
- Included
Class Method Summary
-
.new(bridge, id) ⇒ ShadowRoot
constructor
Internal use only
Internal use only
Creates a new shadow root.
Instance Attribute Summary
- #bridge readonly private
Instance Method Summary
- #==(other) (also: #eql?)
-
#eql?(other)
Alias for #==.
- #hash
- #inspect
-
#as_json
Internal use only
Internal use only
For Rails 3 - jonathanjulian.com/2010/04/rails-to_json-or-as_json/.
- #ref Internal use only Internal use only
-
#to_json
Internal use only
Internal use only
Convert to a
ShadowRoot
JSON Object for transmission over the wire.
SearchContext
- Included
#find_element | Find the first element matching the given arguments. |
#find_elements | Find all elements matching the given arguments. |
#extract_args |
Constructor Details
.new(bridge, id) ⇒ ShadowRoot
This method is for internal use only.
Creates a new shadow root
Instance Attribute Details
#bridge (readonly, private)
[ GitHub ]# File 'rb/lib/selenium/webdriver/common/shadow_root.rb', line 83
attr_reader :bridge
Instance Method Details
#==(other) Also known as: #eql?
[ GitHub ]#as_json
This method is for internal use only.
For Rails 3 - jonathanjulian.com/2010/04/rails-to_json-or-as_json/
# File 'rb/lib/selenium/webdriver/common/shadow_root.rb', line 77
def as_json(*) {ROOT_KEY => @id} end
#eql?(other)
Alias for #==.
# File 'rb/lib/selenium/webdriver/common/shadow_root.rb', line 45
alias eql? ==
#hash
[ GitHub ]# File 'rb/lib/selenium/webdriver/common/shadow_root.rb', line 47
def hash [@id, @bridge].hash end
#inspect
[ GitHub ]# File 'rb/lib/selenium/webdriver/common/shadow_root.rb', line 38
def inspect format '#<%<class>s:0x%<hash>x id=%<id>s>', class: self.class, hash: hash * 2, id: @id.inspect end
#ref
This method is for internal use only.
# File 'rb/lib/selenium/webdriver/common/shadow_root.rb', line 56
def ref [:shadow_root, @id] end
#to_json
This method is for internal use only.
Convert to a ShadowRoot
JSON Object for transmission over the wire.
# File 'rb/lib/selenium/webdriver/common/shadow_root.rb', line 67
def to_json(*) JSON.generate as_json end