Closed dschiller closed 4 years ago
Is there a way to find out the Name of the actual Step is running ?
BDD File:
... Do some fancy Step ...
Steps.py File:
... def saveScreenshot(): Scenario.driver.save_screenshot('<Name of the Step here>.png') # Something like Scenario.actual_step_name() ... @step('Do some fancy Step') def stepImpl(step): saveScreenshot() ...
Found it. It is step.expanded_sentence.
step.expanded_sentence
Is there a way to find out the Name of the actual Step is running ?
BDD File:
Steps.py File: