1JavascriptExecutor js = (JavascriptExecutor) driver;
2js.executeScript(Script,Arguments);
1class Person {
2 constructor(obj) {
3 obj && Object.assign(this, obj);
4 }
5
6 getFullName() {
7 return `${this.lastName} ${this.firstName}`;
8 }
9}