TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ashok Reddy
NA
11
6.9k
How to fix System.Reflection.TargetInvocationException
Nov 24 2017 9:31 AM
I am Developing POM with Page Factory in Selenium automation Script with C#. but, when I am trying to click on same Element second Time, I am getting Exception like:
"System.Reflection.TargetInvocationException","OpenQA.Selenium.StaleElementReferenceException"
. Plese, tell me how to fix that.
MyAccountHeadCarotMaster.Click();
MyReports.Click();
MyJob1.Click();
Thread.Sleep(4000);
MyAccountHeadCarotMaster.Click();
Reports.Click();
MyJob2.Click();
Thread.Sleep(4000);
MyAccountHeadCarotMaster.Click();
Reports.Click();
MyJob3.Click();
Thread.Sleep(4000);
MyAccountHeadCarotMaster.Click();
Reports.Click();
MyJob4.Click();
Thread.Sleep(4000);
MyAccountHeadCarotMaster.Click();
Reports.Click();
MyJob5.Click();
Thread.Sleep(4000);
MyAccountHeadCarotMaster.Click();
Reports.Click();
MyJob6.Click();
Thread.Sleep(4000);
Reply
Answers (
1
)
Excel Data into Web Form automatically
How to work with SSL pop Up in selenium?