|
|
@ -1,7 +1,6 @@
|
|
|
|
package com.olexyn.tabdriver;
|
|
|
|
package com.olexyn.tabdriver;
|
|
|
|
|
|
|
|
|
|
|
|
import com.olexyn.min.log.LogU;
|
|
|
|
import com.olexyn.min.log.LogU;
|
|
|
|
import org.checkerframework.checker.nullness.qual.Nullable;
|
|
|
|
|
|
|
|
import org.openqa.selenium.By;
|
|
|
|
import org.openqa.selenium.By;
|
|
|
|
import org.openqa.selenium.JavascriptExecutor;
|
|
|
|
import org.openqa.selenium.JavascriptExecutor;
|
|
|
|
import org.openqa.selenium.Keys;
|
|
|
|
import org.openqa.selenium.Keys;
|
|
|
@ -318,6 +317,14 @@ public class TabDriver implements JavascriptExecutor {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public synchronized Optional<WebElement> findByCss(WebElement context, String css) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
return Optional.of(context.findElement(By.cssSelector(css)));
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
return Optional.empty();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Any-Match.
|
|
|
|
* Any-Match.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|