How click method of webelement works internally?

I am new to selenium so I was going through selenium documentation and in documentationbelow is the description for click() method:

Click()

Click this element. If this causes a new page to load, you should discard all references to this element and any further operations performed on this element will throw a StaleElementReferenceException. Note that if click() is done by sending a native event (which is the default on most browsers/platforms) then the method will not wait for the next page to load and the caller should verify that themselves.

Can anyone please help me in understanding what does these above explaination exactly mean? It will be a big help if provided a supporting example.

Thanks

Default Asked on June 14, 2018 in Selenium WebDriver.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.