episode-116/store/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/partials_support.rb
# Extracts the commands from a partial. The partial must contain a html table
# and the first row is ignored since it cannot contain a command.

Extracts the commands from a partial. The partial must contain a html table
and the first row is ignored since it cannot contain a command.
Extracts the commands from a partial . The partial must contain a html table and the first row is ignored since it cannot contain a command .
def extract_commands_from_partial partial
    partial = partial.match(/.*<table>.*?<tr>.*?<\/tr>(.*?)<\/table>/im)[1]
    raise "Partial '#{name}' doesn't contain any table" unless partial
    partial
  end
def extract_commands_from_partial partial partial = partial . match ( / .*<table>.*?<tr>.*?< \/ tr>(.*?)< \/ table> /im ) [ 1 ] raise "Partial '#{name}' doesn't contain any table" unless partial partial end
Extracts the commands from a partial.
Extracts the commands from a partial .
partial