szcn / jsexecutor Goto Github PK
View Code? Open in Web Editor NEWScript executor and E2E testing support framework written in Java and JS
Home Page: http://javascriptexecutor.com
License: Apache License 2.0
Script executor and E2E testing support framework written in Java and JS
Home Page: http://javascriptexecutor.com
License: Apache License 2.0
.forEach(index -> jExecutor.executeScript("window.scrollTo(0," + index + ");"));
for select, click etc.
builder manager and execBy tested
Tested from the sahibinden.com selenium(jdk8) project
Tested from the sahibinden.com web-test(jdk11) project
version updated
private By getLocator(WebElement element){
Object findBy = null;
try {
Object proxyOrigin = FieldUtils.readField(element, "h", true);
Object locator = FieldUtils.readField(proxyOrigin, "locator", true);
findBy = FieldUtils.readField(locator, "by", true);
} catch (IllegalAccessException e) {
e.printStackTrace();
}
Assertions.assertThat(findBy).isNotNull();
return (By) findBy;
}
css,text, margin-top etc.
final String GET_RESPONSE_CODE_SCRIPT =
"var xhr = new XMLHttpRequest();" +
"xhr.open('GET', arguments[0], false);" +
"xhr.send(null);" +
"return xhr.status";
JavascriptExecutor javascriptExecutor = (JavascriptExecutor) webDriver;
users should be setting to log file in resource package
defaul log filename : javascriptexecutor.properties or jsexecutor.properties
log file content
log.active = true or false
an annotation that gets params should be create
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.