You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(this.FindElementMethodis not {}findElementMethod)
330
+
{
331
+
thrownewInvalidOperationException("FindElement method not set. Override the By.FindElement method, set the By.FindElementMethod property, or use a constructor that sets a query mechanism.");
332
+
}
333
+
334
+
returnfindElementMethod(context);
333
335
}
334
336
335
337
/// <summary>
@@ -340,7 +342,12 @@ public virtual IWebElement FindElement(ISearchContext context)
340
342
/// matching the current criteria, or an empty list if nothing matches.</returns>
if(this.FindElementsMethodis not {}findElementsMethod)
346
+
{
347
+
thrownewInvalidOperationException("FindElements method not set. Override the By.FindElements method, set the By.FindElementsMethod property, or use a constructor that sets a query mechanism.");
0 commit comments