How can I resolve this error- stale element reference: element is not attached to the page document
Add a break at the end of if statement to resolve the error - stale element reference: element is not attached to the page document if(sample.getText().equals(data)){ sample.click(); break; }
Answered Oct 20, 2022 · 1.1K Views Read answer →