Skip to content

Commit 25efb72

Browse files
committed
[rb] log at info level with names and values when Guards#add_condition used
1 parent 900bbaa commit 25efb72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rb/lib/selenium/webdriver/support/guards.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def initialize(example, bug_tracker: '', conditions: nil)
3939

4040
def add_condition(name, condition = nil, &block)
4141
@guard_conditions << GuardCondition.new(name, condition, &block)
42+
WebDriver.logger.info "Running with Guard '#{name}' set to: #{!!condition}"
4243
end
4344

4445
def add_message(name, message)

0 commit comments

Comments
 (0)