Sha256: 5dea873f9bc937b6e97f157f6833e67dfd8dbb9bee9fade56548f7500bcfcdd4
Contents?: true
Size: 681 Bytes
Versions: 14
Compression:
Stored size: 681 Bytes
Contents
When /^(?:|I )check ext checkbox "([^"]*)"$/ do |field| page.driver.browser.execute_script <<-JS var checkbox = Ext.ComponentQuery.query("checkboxfield[fieldLabel='#{field}']")[0]; checkbox = checkbox || Ext.ComponentQuery.query("checkboxfield[boxLabel='#{field}']")[0]; checkbox.setValue(true); JS end Then /^ext "([^"]*)" checkbox should(| not) be checked$/ do |name, arg| page.driver.browser.execute_script(<<-JS).should == arg.eql?("") var checkbox = Ext.ComponentQuery.query('checkboxfield[boxLabel="#{name}"]')[0]; checkbox = checkbox || Ext.ComponentQuery.query('checkboxfield[fieldLabel="#{name}"]')[0]; return checkbox.getValue(); JS end
Version data entries
14 entries across 14 versions & 2 rubygems