Getting an error while using Exception handling block:
Please refer below screenshot for details. Can someone please provide suggestions on this.
Test case doesn't recognize StepErrorException class. You have to either import it or use full path as you did in previous throw statements.
Thank You for your response. Can you please provide me import lines ?
I am new to Automation
It is the same path what you use in your code. Try to add this line to the import section of your script:
Thank You ....
It looks like you're new here. If you want to get involved, click one of these buttons!