Here are the examples of the csharp api System.Collections.Concurrent.ConcurrentDictionary.ContainsKey(IWebDriver) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : Extend.cs
with MIT License
from Magenic
with MIT License
from Magenic
public static WebDriverWait GetWaitDriver(this ISearchContext searchContext)
{
// Make sure we have the base driver and not the event firing driver
IWebDriver unwrappedDriver = GetLowLevelDriver(searchContext);
if (waitCollection.ContainsKey(unwrappedDriver))
{
// Make sure we don't have any cached messages
waitCollection[unwrappedDriver].Message = string.Empty;
return waitCollection[unwrappedDriver];
}
else
{
WebDriverWait waiter = SeleniumConfig.GetWaitDriver(unwrappedDriver);
waitCollection.AddOrUpdate(unwrappedDriver, waiter, (oldkey, oldvalue) => waiter);
return waiter;
}
}