Skip to content

How it is possible to flash or draw border when element is not found #2

@rbhavsar

Description

@rbhavsar

@naveenanimation20

I tried in my code, If element xpath is wrong then it fails on findElement.
Don't go into next line for flash or draw a border.

In Our framework, we take a screenshot on

@OverRide
public void onTestFailure(ITestResult tr)
{
}

Now Consider if NoSuchElement ref error occurs then How ITestResult will identity the Element to draw a border.

I am not that much good in selenium or testNG. Can you please give me guideline to use flash and draw a border usecase.
I am expecting to flash or draw a border when test case failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions