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
@@ -387,7 +394,7 @@ public String getPageTitle() {
387
394
//
388
395
389
396
publicbooleanisDisplayed(ObjectwebElement) {
390
-
if (webElement==null) thrownewRuntimeException("Passed webElement null!");
397
+
if (webElement==null) thrownewRuntimeException("webElement null!");
391
398
Logger.WriteLine(Logger.LogLevels.FrameworkDebug, "Get element displayed status using Selenium IWebElement.isDisplayed");
392
399
try {
393
400
return ((WebElement) webElement).isDisplayed();
@@ -400,7 +407,7 @@ public boolean isDisplayed(Object webElement) {
400
407
}
401
408
}
402
409
publicbooleanisEnabled(ObjectwebElement) {
403
-
if (webElement==null) thrownewRuntimeException("Passed webElement null!");
410
+
if (webElement==null) thrownewRuntimeException("webElement null!");
404
411
Logger.WriteLine(Logger.LogLevels.FrameworkDebug, "Get element enabled status using Selenium IWebElement.isEnabled");
405
412
try {
406
413
return ((WebElement) webElement).isEnabled();
@@ -415,7 +422,7 @@ public boolean isEnabled(Object webElement) {
415
422
416
423
publicvoidclear(ObjectwebElement)
417
424
{
418
-
if (webElement==null) thrownewRuntimeException("Passed webElement null!");
425
+
if (webElement==null) thrownewRuntimeException("webElement null!");
419
426
Logger.WriteLine(Logger.LogLevels.FrameworkDebug, "Clearing element using Selenium IWebElement.Clear");
420
427
try {
421
428
((WebElement) webElement).clear();
@@ -435,7 +442,7 @@ public void setText(Object webElement, String text)
435
442
//
436
443
// A possible need is to wait until text can be entered:-
437
444
//IWebElement aa = ElementFindTimeout.Until((b) => { if (IsElementVisible(WebElement) && IsElementEnabled(WebElement)) return WebElement; else { Logger.WriteLn(this, "SetText", "Polling until Text can be entered"); return null; } });
438
-
if (webElement==null) thrownewRuntimeException("Passed webElement null!");
445
+
if (webElement==null) thrownewRuntimeException("webElement null!");
439
446
text = (text==null)?"":text;
440
447
Logger.WriteLine(Logger.LogLevels.FrameworkDebug, "Entering text using Selenium IWebElement SendKeys: [%s].", text);
441
448
try {
@@ -450,6 +457,78 @@ public void setText(Object webElement, String text)
0 commit comments