![](/img/trans.png)
[英]Ruby Selenium Web Driver: How to find child element by class name matching substring
[英]how to get the test case name in selenium web driver in ruby?
我是Selenium的新手,對此有疑問。 說我有這樣的代碼
it "test_name" do
#test code enter code here
end
有什么辦法可以獲取“ test_name”,還是可以將其存儲在字符串中並在該字符串之前使用它。 感謝ind提前
在運行測試時,傳遞命令行參數-v
。 V代表verbose
。
所以舉個例子
ruby test.rb -v
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.