History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WTR-128
Type: New Feature New Feature
Status: Closed Closed
Resolution: Won't Fix
Priority: Trivial Trivial
Assignee: Unassigned
Reporter: Bret Pettichord
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Watir

Create a "watir" script that can execute watir scripts automatically in the context of an IE object

Created: 17/Jan/07 09:14 PM   Updated: Monday 04:35 PM
Component/s: None
Affects Version/s: None
Fix Version/s: Soon

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Dependency
This issue Depends on:
WTR-126 Simple Block Syntax to make quick-scr... Trivial Closed
This issue is depended on by:
WTR-130 Allow "watir" command (and block synt... Trivial Closed
Relationship
 
This issue Relates to:
WTR-127 Make it easier to use write simple te... Major Open


 Description  « Hide
Here are several use-cases this command would support:

script.rb:
    goto('http://www.google.com')
    text_field(:name, 'q').set 'ruby'
    button(:name, 'btnG').click

Execute it with:
 > watir script.rb

Or rename at script.wtr, and create a file association:

> script.wtr

Scripts can also be specified on the command line:

> watir -e "goto('http://www.google.com'); text_field(:name, 'q').set 'ruby'; button(:name, 'btnG').click"

Support -b switch to run invisibly


Automatic Browser Close

Consider adding an option to automatically close a script (no matter what) at the end.
* Need to do this automatically anyway if the window is not visible.
* But never auto close if we attached




 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.