Sha256: 466850624c25b94569ad3a0f37f350a4035fbcb7b2ebc55f2e65b84225c758a4
Contents?: true
Size: 799 Bytes
Versions: 5
Compression:
Stored size: 799 Bytes
Contents
Then /^active window size must be (\d+),(\d+)$/ do |w, h| page.driver.browser.execute_script(<<-JS).should == [w.to_i,h.to_i] var win = Ext.WindowMgr.getActive(); return [win.getWidth(), win.getHeight()]; JS end Then /^active window position must be (\d+),(\d+)$/ do |x, y| page.driver.browser.execute_script(<<-JS).should == [x.to_i,y.to_i] var win = Ext.WindowMgr.getActive(); return win.getPosition(); JS end When /^I move active window to (\d+),(\d+)$/ do |x, y| page.driver.browser.execute_script(<<-JS) var win = Ext.WindowMgr.getActive(); win.setPosition(#{x},#{y}); JS end When /^I resize active window to (\d+),(\d+)$/ do |w, h| page.driver.browser.execute_script(<<-JS) var win = Ext.WindowMgr.getActive(); win.setSize(#{w},#{h}); JS end
Version data entries
5 entries across 5 versions & 1 rubygems