Skip to content

Commit b1c9ada

Browse files
committed
rb - fix collections bug
1 parent 3d792ee commit b1c9ada

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rb/lib/selenium/webdriver/remote/w3c_bridge.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ def element_value_of_css_property(element, prop)
570570
#
571571

572572
def active_element
573-
Element.new self, element_id_from(execute(:getActiveElement))
573+
Element.new self, execute(:getActiveElement)
574574
end
575575

576576
alias_method :switch_to_active_element, :active_element
@@ -595,7 +595,7 @@ def find_elements_by(how, what, parent = nil)
595595
execute :findElements, {}, {using: how, value: what}
596596
end
597597

598-
ids.map { |id| Element.new self, element_id_from(id) }
598+
ids.map { |id| Element.new self, id }
599599
end
600600

601601
private

0 commit comments

Comments
 (0)