Answered by:
Selenium WebDriver Exception - Element timed out(Session gets expired and Remote Web driver gets killed)

Question
-
We are using Selenium with C#. We are facing issue of driver getting killed when we try and verify that certain object is not present, below is the code
public class GraphNew
{
public Boolean testGraphNew(IWebDriver driver, Logger OneLogger)
{
try
{ //Navigate to a page
try
{
driver.FindElement(By.XPath("//a[contains(text(),'Add New Claim')]")).Click();
}
catch
{
OneLogger.Log("Element is not prsent")
}
}
}
catch(Exception e)
{
OneLogger.LogException(e);
return false;
}
}- Moved by Dave PatrickMVP Friday, February 19, 2016 1:47 PM
Friday, February 19, 2016 1:34 PM
Answers
-
Might try over here.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral
http://forums.asp.net/37.aspx/1?C+
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.- Proposed as answer by Mike Laughlin Friday, February 19, 2016 2:10 PM
- Marked as answer by Dave PatrickMVP Saturday, February 27, 2016 5:51 PM
Friday, February 19, 2016 1:46 PM -
Hello,
I'd ask Selenium: http://docs.seleniumhq.org/support/
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join('6D73646E5F6B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})- Proposed as answer by Mike Laughlin Friday, February 19, 2016 5:18 PM
- Marked as answer by Dave PatrickMVP Saturday, February 27, 2016 5:51 PM
Friday, February 19, 2016 4:55 PM
All replies
-
Might try over here.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral
http://forums.asp.net/37.aspx/1?C+
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.- Proposed as answer by Mike Laughlin Friday, February 19, 2016 2:10 PM
- Marked as answer by Dave PatrickMVP Saturday, February 27, 2016 5:51 PM
Friday, February 19, 2016 1:46 PM -
Hello,
I'd ask Selenium: http://docs.seleniumhq.org/support/
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join('6D73646E5F6B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})- Proposed as answer by Mike Laughlin Friday, February 19, 2016 5:18 PM
- Marked as answer by Dave PatrickMVP Saturday, February 27, 2016 5:51 PM
Friday, February 19, 2016 4:55 PM