I am new to selenium so I was going through selenium documentation and in documentationbelow is the description for click() method:
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.