Method: Selenium::SeleniumDriver#get_string_array
- Defined in:
- lib/selenium/openqa/selenium.rb
#get_string_array(verb, args) ⇒ Object
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
# File 'lib/selenium/openqa/selenium.rb', line 184 def get_string_array(verb, args) csv = get_string(verb, args) token = "" tokens = [] escape = false csv.split(//).each do |letter| if escape token = token + letter escape = false next end if (letter == '\\') escape = true elsif (letter == ',') tokens.push(token) token = "" else token = token + letter end end tokens.push(token) return tokens end |