module Thoran::Selenium::WebDriver::Remote::W3C::Bridge::ConvertLocators
Public Instance Methods
convert_locators(how, what)
click to toggle source
# File lib/Thoran/Selenium/WebDriver/Remote/W3C/Bridge/ConvertLocators/convert_locators.rb, line 18 def convert_locators(how, what) case how.to_s when 'class name' how = 'css selector' what = ".#{escape_css(what)}" when 'id' how = 'css selector' what = "##{escape_css(what)}" when 'name' how = 'css selector' what = "*[name='#{escape_css(what)}']" when 'tag name' how = 'css selector' end [how, what] end