@auxcode/auxta 1.3.38 → 1.3.40-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/AuxTA.d.ts +62 -62
- package/build/cjs/AuxTA.js +154 -154
- package/build/cjs/auxta/configs/config.d.ts +57 -57
- package/build/cjs/auxta/configs/config.js +69 -69
- package/build/cjs/auxta/enums/status-of.step.d.ts +7 -7
- package/build/cjs/auxta/enums/status-of.step.js +11 -11
- package/build/cjs/auxta/helpers/response.helper.d.ts +10 -10
- package/build/cjs/auxta/helpers/response.helper.js +15 -15
- package/build/cjs/auxta/helpers/start.helper.d.ts +1 -1
- package/build/cjs/auxta/helpers/start.helper.js +26 -26
- package/build/cjs/auxta/hooks/report.hook.d.ts +14 -14
- package/build/cjs/auxta/hooks/report.hook.js +66 -66
- package/build/cjs/auxta/models/upload.model.d.ts +35 -35
- package/build/cjs/auxta/models/upload.model.js +82 -82
- package/build/cjs/auxta/services/log.service.d.ts +26 -26
- package/build/cjs/auxta/services/log.service.js +47 -47
- package/build/cjs/auxta/services/report.service.d.ts +36 -36
- package/build/cjs/auxta/services/report.service.js +167 -167
- package/build/cjs/auxta/services/runtime.service.d.ts +16 -16
- package/build/cjs/auxta/services/runtime.service.js +41 -41
- package/build/cjs/auxta/utilities/runtime.helper.d.ts +15 -15
- package/build/cjs/auxta/utilities/runtime.helper.js +19 -19
- package/build/cjs/auxta/utilities/screenshot.helper.d.ts +2 -2
- package/build/cjs/auxta/utilities/screenshot.helper.js +40 -40
- package/build/cjs/auxta/utilities/start-suite.helper.d.ts +17 -17
- package/build/cjs/auxta/utilities/start-suite.helper.js +31 -31
- package/build/cjs/macros/helpers/Aux2faAuth.d.ts +7 -7
- package/build/cjs/macros/helpers/Aux2faAuth.js +29 -29
- package/build/cjs/macros/helpers/AuxGoogleAuth.d.ts +17 -17
- package/build/cjs/macros/helpers/AuxGoogleAuth.js +104 -104
- package/build/cjs/macros/helpers/code.helper.d.ts +21 -21
- package/build/cjs/macros/helpers/code.helper.js +201 -201
- package/build/cjs/macros/helpers/emailHelper.d.ts +19 -19
- package/build/cjs/macros/helpers/emailHelper.js +177 -177
- package/build/cjs/macros/helpers/extend-default-page.d.ts +6 -6
- package/build/cjs/macros/helpers/extend-default-page.js +89 -89
- package/build/cjs/puppeteer/puppeteer.d.ts +25 -25
- package/build/cjs/puppeteer/puppeteer.js +209 -208
- package/build/esm/AuxTA.d.ts +62 -62
- package/build/esm/AuxTA.js +125 -125
- package/build/esm/auxta/configs/config.d.ts +57 -57
- package/build/esm/auxta/configs/config.js +64 -64
- package/build/esm/auxta/enums/status-of.step.d.ts +7 -7
- package/build/esm/auxta/enums/status-of.step.js +8 -8
- package/build/esm/auxta/helpers/response.helper.d.ts +10 -10
- package/build/esm/auxta/helpers/response.helper.js +11 -11
- package/build/esm/auxta/helpers/start.helper.d.ts +1 -1
- package/build/esm/auxta/helpers/start.helper.js +24 -24
- package/build/esm/auxta/hooks/report.hook.d.ts +14 -14
- package/build/esm/auxta/hooks/report.hook.js +58 -58
- package/build/esm/auxta/models/upload.model.d.ts +35 -35
- package/build/esm/auxta/models/upload.model.js +78 -78
- package/build/esm/auxta/services/log.service.d.ts +26 -26
- package/build/esm/auxta/services/log.service.js +43 -43
- package/build/esm/auxta/services/report.service.d.ts +36 -36
- package/build/esm/auxta/services/report.service.js +153 -153
- package/build/esm/auxta/services/runtime.service.d.ts +16 -16
- package/build/esm/auxta/services/runtime.service.js +37 -37
- package/build/esm/auxta/utilities/runtime.helper.d.ts +15 -15
- package/build/esm/auxta/utilities/runtime.helper.js +15 -15
- package/build/esm/auxta/utilities/screenshot.helper.d.ts +2 -2
- package/build/esm/auxta/utilities/screenshot.helper.js +33 -33
- package/build/esm/auxta/utilities/start-suite.helper.d.ts +17 -17
- package/build/esm/auxta/utilities/start-suite.helper.js +26 -26
- package/build/esm/macros/helpers/Aux2faAuth.d.ts +7 -7
- package/build/esm/macros/helpers/Aux2faAuth.js +25 -25
- package/build/esm/macros/helpers/AuxGoogleAuth.d.ts +17 -17
- package/build/esm/macros/helpers/AuxGoogleAuth.js +100 -100
- package/build/esm/macros/helpers/code.helper.d.ts +21 -21
- package/build/esm/macros/helpers/code.helper.js +194 -194
- package/build/esm/macros/helpers/emailHelper.d.ts +19 -19
- package/build/esm/macros/helpers/emailHelper.js +170 -170
- package/build/esm/macros/helpers/extend-default-page.d.ts +6 -6
- package/build/esm/macros/helpers/extend-default-page.js +82 -82
- package/build/esm/puppeteer/puppeteer.d.ts +25 -25
- package/build/esm/puppeteer/puppeteer.js +201 -200
- package/build/tsconfig-cjs.tsbuildinfo +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare class Aux2faAuth {
|
|
2
|
-
authenticator(): any;
|
|
3
|
-
verifyToken(token: string): boolean;
|
|
4
|
-
private getSecret;
|
|
5
|
-
}
|
|
6
|
-
declare const _default: Aux2faAuth;
|
|
7
|
-
export default _default;
|
|
1
|
+
export declare class Aux2faAuth {
|
|
2
|
+
authenticator(): any;
|
|
3
|
+
verifyToken(token: string): boolean;
|
|
4
|
+
private getSecret;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: Aux2faAuth;
|
|
7
|
+
export default _default;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
const twofactor = require("node-2fa");
|
|
2
|
-
export class Aux2faAuth {
|
|
3
|
-
authenticator() {
|
|
4
|
-
const aux2fe_secret = this.getSecret();
|
|
5
|
-
return twofactor.generateToken(aux2fe_secret).token;
|
|
6
|
-
}
|
|
7
|
-
verifyToken(token) {
|
|
8
|
-
const aux2fe_secret = this.getSecret();
|
|
9
|
-
const result = twofactor.verifyToken(aux2fe_secret, token);
|
|
10
|
-
if (result != null) {
|
|
11
|
-
if (result.delta == 0) {
|
|
12
|
-
return true;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return false;
|
|
16
|
-
}
|
|
17
|
-
getSecret() {
|
|
18
|
-
const aux2fe_secret = process.env.aux2fe_secret;
|
|
19
|
-
if (!aux2fe_secret) {
|
|
20
|
-
throw new Error('No 2fe secret set');
|
|
21
|
-
}
|
|
22
|
-
return aux2fe_secret;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
export default new Aux2faAuth();
|
|
1
|
+
const twofactor = require("node-2fa");
|
|
2
|
+
export class Aux2faAuth {
|
|
3
|
+
authenticator() {
|
|
4
|
+
const aux2fe_secret = this.getSecret();
|
|
5
|
+
return twofactor.generateToken(aux2fe_secret).token;
|
|
6
|
+
}
|
|
7
|
+
verifyToken(token) {
|
|
8
|
+
const aux2fe_secret = this.getSecret();
|
|
9
|
+
const result = twofactor.verifyToken(aux2fe_secret, token);
|
|
10
|
+
if (result != null) {
|
|
11
|
+
if (result.delta == 0) {
|
|
12
|
+
return true;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
getSecret() {
|
|
18
|
+
const aux2fe_secret = process.env.aux2fe_secret;
|
|
19
|
+
if (!aux2fe_secret) {
|
|
20
|
+
throw new Error('No 2fe secret set');
|
|
21
|
+
}
|
|
22
|
+
return aux2fe_secret;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export default new Aux2faAuth();
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import googleType = require("googleapis");
|
|
2
|
-
export declare class AuxGoogleAuth {
|
|
3
|
-
private static _oAuth2Client;
|
|
4
|
-
private static credentialsJson;
|
|
5
|
-
static get oAuth2Client(): googleType.Auth.OAuth2Client;
|
|
6
|
-
static get googleClient(): googleType.GoogleApis;
|
|
7
|
-
static get gmailClient(): googleType.gmail_v1.Gmail;
|
|
8
|
-
static setup(): Promise<void>;
|
|
9
|
-
private static authorize;
|
|
10
|
-
private static getNewToken;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: AuxGoogleAuth;
|
|
13
|
-
export default _default;
|
|
14
|
-
export interface currentUser {
|
|
15
|
-
name: string;
|
|
16
|
-
email: string;
|
|
17
|
-
}
|
|
1
|
+
import googleType = require("googleapis");
|
|
2
|
+
export declare class AuxGoogleAuth {
|
|
3
|
+
private static _oAuth2Client;
|
|
4
|
+
private static credentialsJson;
|
|
5
|
+
static get oAuth2Client(): googleType.Auth.OAuth2Client;
|
|
6
|
+
static get googleClient(): googleType.GoogleApis;
|
|
7
|
+
static get gmailClient(): googleType.gmail_v1.Gmail;
|
|
8
|
+
static setup(): Promise<void>;
|
|
9
|
+
private static authorize;
|
|
10
|
+
private static getNewToken;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: AuxGoogleAuth;
|
|
13
|
+
export default _default;
|
|
14
|
+
export interface currentUser {
|
|
15
|
+
name: string;
|
|
16
|
+
email: string;
|
|
17
|
+
}
|
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
const fs = require('fs');
|
|
11
|
-
const readline = require('readline');
|
|
12
|
-
const { google } = require("googleapis");
|
|
13
|
-
const SCOPES = [
|
|
14
|
-
'https://www.googleapis.com/auth/gmail.addons.current.action.compose',
|
|
15
|
-
'https://www.googleapis.com/auth/gmail.addons.current.message.action',
|
|
16
|
-
'https://www.googleapis.com/auth/gmail.labels',
|
|
17
|
-
'https://www.googleapis.com/auth/gmail.addons.current.message.metadata',
|
|
18
|
-
'https://www.googleapis.com/auth/gmail.addons.current.message.readonly',
|
|
19
|
-
'https://www.googleapis.com/auth/gmail.send',
|
|
20
|
-
'https://mail.google.com/',
|
|
21
|
-
'https://www.googleapis.com/auth/gmail.modify',
|
|
22
|
-
'https://www.googleapis.com/auth/gmail.compose',
|
|
23
|
-
'https://www.googleapis.com/auth/gmail.readonly',
|
|
24
|
-
'https://www.googleapis.com/auth/gmail.insert',
|
|
25
|
-
];
|
|
26
|
-
const TOKEN_PATH = 'token.json';
|
|
27
|
-
export class AuxGoogleAuth {
|
|
28
|
-
static get oAuth2Client() {
|
|
29
|
-
return this._oAuth2Client;
|
|
30
|
-
}
|
|
31
|
-
static get googleClient() {
|
|
32
|
-
return google;
|
|
33
|
-
}
|
|
34
|
-
static get gmailClient() {
|
|
35
|
-
return google.gmail({ version: 'v1', auth: this._oAuth2Client });
|
|
36
|
-
}
|
|
37
|
-
static setup() {
|
|
38
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
yield this.authorize(this.credentialsJson);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
static authorize(credentials) {
|
|
43
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
-
const { client_secret, client_id, redirect_uris } = credentials.installed;
|
|
45
|
-
const oAuth2Client = new google.auth.OAuth2(client_id, client_secret, redirect_uris[0]);
|
|
46
|
-
try {
|
|
47
|
-
let token = fs.readFileSync(TOKEN_PATH);
|
|
48
|
-
if (token.length > 0 && token !== undefined) {
|
|
49
|
-
oAuth2Client.setCredentials(JSON.parse(token));
|
|
50
|
-
this._oAuth2Client = oAuth2Client;
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
yield this.getNewToken(oAuth2Client);
|
|
54
|
-
}
|
|
55
|
-
catch (e) {
|
|
56
|
-
yield this.getNewToken(oAuth2Client);
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
static getNewToken(oAuth2Client) {
|
|
61
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
-
const authUrl = oAuth2Client.generateAuthUrl({
|
|
63
|
-
access_type: 'offline',
|
|
64
|
-
prompt: 'consent',
|
|
65
|
-
scope: SCOPES,
|
|
66
|
-
});
|
|
67
|
-
console.log('Authorize this app by visiting this url:', authUrl);
|
|
68
|
-
const rl = readline.createInterface({
|
|
69
|
-
input: process.stdin,
|
|
70
|
-
output: process.stdout,
|
|
71
|
-
});
|
|
72
|
-
rl.question('Enter the code from that page here: ', (code) => {
|
|
73
|
-
rl.close();
|
|
74
|
-
oAuth2Client.getToken(code, (err, token) => {
|
|
75
|
-
if (err)
|
|
76
|
-
return console.error('Error retrieving access token', err);
|
|
77
|
-
oAuth2Client.setCredentials(token);
|
|
78
|
-
fs.writeFile(TOKEN_PATH, JSON.stringify(token), (err) => {
|
|
79
|
-
if (err)
|
|
80
|
-
return console.error(err);
|
|
81
|
-
console.log('Token stored to', TOKEN_PATH);
|
|
82
|
-
});
|
|
83
|
-
this._oAuth2Client = oAuth2Client;
|
|
84
|
-
});
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
AuxGoogleAuth.credentialsJson = {
|
|
90
|
-
"installed": {
|
|
91
|
-
"client_id": "120362272213-usevfijf76jj5nsr502i2lai6nu71oq8.apps.googleusercontent.com",
|
|
92
|
-
"project_id": "auxta-library",
|
|
93
|
-
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
|
|
94
|
-
"token_uri": "https://oauth2.googleapis.com/token",
|
|
95
|
-
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
|
|
96
|
-
"client_secret": "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",
|
|
97
|
-
"redirect_uris": ["https://auxcode.com"]
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
export default new AuxGoogleAuth();
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
const fs = require('fs');
|
|
11
|
+
const readline = require('readline');
|
|
12
|
+
const { google } = require("googleapis");
|
|
13
|
+
const SCOPES = [
|
|
14
|
+
'https://www.googleapis.com/auth/gmail.addons.current.action.compose',
|
|
15
|
+
'https://www.googleapis.com/auth/gmail.addons.current.message.action',
|
|
16
|
+
'https://www.googleapis.com/auth/gmail.labels',
|
|
17
|
+
'https://www.googleapis.com/auth/gmail.addons.current.message.metadata',
|
|
18
|
+
'https://www.googleapis.com/auth/gmail.addons.current.message.readonly',
|
|
19
|
+
'https://www.googleapis.com/auth/gmail.send',
|
|
20
|
+
'https://mail.google.com/',
|
|
21
|
+
'https://www.googleapis.com/auth/gmail.modify',
|
|
22
|
+
'https://www.googleapis.com/auth/gmail.compose',
|
|
23
|
+
'https://www.googleapis.com/auth/gmail.readonly',
|
|
24
|
+
'https://www.googleapis.com/auth/gmail.insert',
|
|
25
|
+
];
|
|
26
|
+
const TOKEN_PATH = 'token.json';
|
|
27
|
+
export class AuxGoogleAuth {
|
|
28
|
+
static get oAuth2Client() {
|
|
29
|
+
return this._oAuth2Client;
|
|
30
|
+
}
|
|
31
|
+
static get googleClient() {
|
|
32
|
+
return google;
|
|
33
|
+
}
|
|
34
|
+
static get gmailClient() {
|
|
35
|
+
return google.gmail({ version: 'v1', auth: this._oAuth2Client });
|
|
36
|
+
}
|
|
37
|
+
static setup() {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
yield this.authorize(this.credentialsJson);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
static authorize(credentials) {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
const { client_secret, client_id, redirect_uris } = credentials.installed;
|
|
45
|
+
const oAuth2Client = new google.auth.OAuth2(client_id, client_secret, redirect_uris[0]);
|
|
46
|
+
try {
|
|
47
|
+
let token = fs.readFileSync(TOKEN_PATH);
|
|
48
|
+
if (token.length > 0 && token !== undefined) {
|
|
49
|
+
oAuth2Client.setCredentials(JSON.parse(token));
|
|
50
|
+
this._oAuth2Client = oAuth2Client;
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
yield this.getNewToken(oAuth2Client);
|
|
54
|
+
}
|
|
55
|
+
catch (e) {
|
|
56
|
+
yield this.getNewToken(oAuth2Client);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
static getNewToken(oAuth2Client) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
const authUrl = oAuth2Client.generateAuthUrl({
|
|
63
|
+
access_type: 'offline',
|
|
64
|
+
prompt: 'consent',
|
|
65
|
+
scope: SCOPES,
|
|
66
|
+
});
|
|
67
|
+
console.log('Authorize this app by visiting this url:', authUrl);
|
|
68
|
+
const rl = readline.createInterface({
|
|
69
|
+
input: process.stdin,
|
|
70
|
+
output: process.stdout,
|
|
71
|
+
});
|
|
72
|
+
rl.question('Enter the code from that page here: ', (code) => {
|
|
73
|
+
rl.close();
|
|
74
|
+
oAuth2Client.getToken(code, (err, token) => {
|
|
75
|
+
if (err)
|
|
76
|
+
return console.error('Error retrieving access token', err);
|
|
77
|
+
oAuth2Client.setCredentials(token);
|
|
78
|
+
fs.writeFile(TOKEN_PATH, JSON.stringify(token), (err) => {
|
|
79
|
+
if (err)
|
|
80
|
+
return console.error(err);
|
|
81
|
+
console.log('Token stored to', TOKEN_PATH);
|
|
82
|
+
});
|
|
83
|
+
this._oAuth2Client = oAuth2Client;
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
AuxGoogleAuth.credentialsJson = {
|
|
90
|
+
"installed": {
|
|
91
|
+
"client_id": "120362272213-usevfijf76jj5nsr502i2lai6nu71oq8.apps.googleusercontent.com",
|
|
92
|
+
"project_id": "auxta-library",
|
|
93
|
+
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
|
|
94
|
+
"token_uri": "https://oauth2.googleapis.com/token",
|
|
95
|
+
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
|
|
96
|
+
"client_secret": "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",
|
|
97
|
+
"redirect_uris": ["https://auxcode.com"]
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
export default new AuxGoogleAuth();
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { StatusOfStep } from "../../auxta/enums/status-of.step";
|
|
2
|
-
import { ExtendDefaultPage } from "./extend-default-page";
|
|
3
|
-
export declare class FunctionHelper extends ExtendDefaultPage {
|
|
4
|
-
log(keyword: string, name: string, status: StatusOfStep): void;
|
|
5
|
-
suggest(name: string): void;
|
|
6
|
-
private getEscapedText;
|
|
7
|
-
clickByText(selector: string, text: string, dotOrText?: string, options?: {}, page?: import("puppeteer").Page, time?: number, log_message?: boolean): Promise<void>;
|
|
8
|
-
clickByTextWithClass(class_selector: string, class_name: string, selector: string, text: string, dotOrText?: string, page?: import("puppeteer").Page): Promise<void>;
|
|
9
|
-
waitForSelectorWithText(selector: string, text: string, dotOrText?: string, page?: import("puppeteer").Page): Promise<boolean>;
|
|
10
|
-
timeout(timeout?: number, page?: import("puppeteer").Page): Promise<void>;
|
|
11
|
-
waitForSelector(option: string, selector: string, time?: number, page?: import("puppeteer").Page, log_message?: boolean): Promise<void>;
|
|
12
|
-
urlContains(selector: string, page?: import("puppeteer").Page): Promise<void>;
|
|
13
|
-
pressEnter(page?: import("puppeteer").Page): Promise<void>;
|
|
14
|
-
emulate(phone_name: string, page?: import("puppeteer").Page): Promise<void>;
|
|
15
|
-
restartBrowser(): Promise<void>;
|
|
16
|
-
clickAndWaitForPageToBeCreated(selector: string, page?: import("puppeteer").Page): Promise<void>;
|
|
17
|
-
closeLastPage(page?: import("puppeteer").Page): Promise<void>;
|
|
18
|
-
microsoftLogin(button: string, email: string, password: string): Promise<void>;
|
|
19
|
-
}
|
|
20
|
-
declare const _default: FunctionHelper;
|
|
21
|
-
export default _default;
|
|
1
|
+
import { StatusOfStep } from "../../auxta/enums/status-of.step";
|
|
2
|
+
import { ExtendDefaultPage } from "./extend-default-page";
|
|
3
|
+
export declare class FunctionHelper extends ExtendDefaultPage {
|
|
4
|
+
log(keyword: string, name: string, status: StatusOfStep): void;
|
|
5
|
+
suggest(name: string): void;
|
|
6
|
+
private getEscapedText;
|
|
7
|
+
clickByText(selector: string, text: string, dotOrText?: string, options?: {}, page?: import("puppeteer").Page, time?: number, log_message?: boolean): Promise<void>;
|
|
8
|
+
clickByTextWithClass(class_selector: string, class_name: string, selector: string, text: string, dotOrText?: string, page?: import("puppeteer").Page): Promise<void>;
|
|
9
|
+
waitForSelectorWithText(selector: string, text: string, dotOrText?: string, page?: import("puppeteer").Page): Promise<boolean>;
|
|
10
|
+
timeout(timeout?: number, page?: import("puppeteer").Page): Promise<void>;
|
|
11
|
+
waitForSelector(option: string, selector: string, time?: number, page?: import("puppeteer").Page, log_message?: boolean): Promise<void>;
|
|
12
|
+
urlContains(selector: string, page?: import("puppeteer").Page): Promise<void>;
|
|
13
|
+
pressEnter(page?: import("puppeteer").Page): Promise<void>;
|
|
14
|
+
emulate(phone_name: string, page?: import("puppeteer").Page): Promise<void>;
|
|
15
|
+
restartBrowser(): Promise<void>;
|
|
16
|
+
clickAndWaitForPageToBeCreated(selector: string, page?: import("puppeteer").Page): Promise<void>;
|
|
17
|
+
closeLastPage(page?: import("puppeteer").Page): Promise<void>;
|
|
18
|
+
microsoftLogin(button: string, email: string, password: string): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: FunctionHelper;
|
|
21
|
+
export default _default;
|