is it possible to Get data from an excel sheet which are watir commands and exe开发者_Go百科cute them.
If you have a string (that you got from excel file) and you want to execute it as code (if I understood what you want to do), you could do something like this:
string_from_excel = "goto"
browser.send string_from_excel, "google.com" # the same as browser.goto "google.com"
Take a look at roo, it can read Excel files. Rasta "is a keyword-driven test framework using spreadsheets to drive testing."
精彩评论