且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

一次运行所有 selenium ruby​​ webdriver 脚本.

更新时间:2023-01-14 07:48:23

你可以使用 rake gem,为此你需要创建一个名为 rakefile.rb 的文件,并粘贴以下内容:

You can use the rake gem, for this you need to create a file named rakefile.rb, and paste the below content:

task :default do
    FileList['file*.rb'].each { |file| ruby file }
end

现在在你的终端中调用 rake,你应该没问题.

Now call rake in your terminal, you should be good.