开发者

Is it possible to get data from excel and use them as watir commands?

开发者 https://www.devze.com 2023-03-02 00:20 出处:网络
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 unde

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."

0

精彩评论

暂无评论...
验证码 换一张
取 消