Newbie
Newbie

Reputation: 2728

Difference between focus and blur in fireevent

What is the difference between focus and blur in fireEvent of Selenium? Kindly,help.

In which situations do we use it?

Upvotes: 0

Views: 1693

Answers (1)

Arran
Arran

Reputation: 25076

This is not a Selenium specific question...

The focus event is fired when an element gains focus.

The blur event is fired when an element loses focus.

Upvotes: 2

Related Questions