Moved ExACT Landing Page script
This commit is contained in:
4
index.js
4
index.js
@@ -1,6 +1,6 @@
|
||||
import express from 'express';
|
||||
|
||||
import exactLandingPage from './tests/exactLandingPage.js';
|
||||
import exactLandingPage from './tests/LandingPage/exactLandingPage.js';
|
||||
//import ExACT_login from './tests/ExACT_login.js';
|
||||
|
||||
//DASHBOARDS
|
||||
@@ -62,7 +62,7 @@ app.get('/', (req, res) => {
|
||||
<h1 style="text-align:center; color:#055a8c; padding-top: 20px;">ExACT Automated Regression Scripts</h1>
|
||||
<div style="text-align:center; color:#001; font-size:15px; ">(Click the corresponding link to execute the desired script)</div>
|
||||
|
||||
<h1 style="text-align:center; color:#055a8c; font-size:20px; ">EDGATE LANDING PAGE</h1>
|
||||
<h1 style="text-align:center; color:#055a8c; font-size:20px; ">EXACT LANDING PAGE</h1>
|
||||
<div style="padding:3px;"><strong><a href='/exactLandingPage' target='_blank'>ExACT Landing Page</a></strong></div>
|
||||
|
||||
<h1 style="text-align:center; color:#055a8c; font-size:20px; ">DASHBOARD</h1>
|
||||
|
||||
BIN
results/exactLandingPage.xlsx
Normal file
BIN
results/exactLandingPage.xlsx
Normal file
Binary file not shown.
@@ -3,7 +3,6 @@ import { Options as ChromeOptions } from 'selenium-webdriver/chrome.js';
|
||||
import fs from 'fs';
|
||||
import XLSX from 'xlsx';
|
||||
import path from 'path';
|
||||
import { error } from 'console';
|
||||
|
||||
const exactLandingPage = (req, res) => {
|
||||
res.send('<h2>ExACT Automated Test Script: ExACT Landing Page(exactLandingPage) | Initiated</h2>');
|
||||
@@ -31,7 +30,7 @@ const steps = [
|
||||
{
|
||||
description: 'Loading Page',
|
||||
action: async () => {
|
||||
console.log('------------->| ExACT LANDING PAGE |<-------------');
|
||||
console.log('------------->| ExACT - LANDING PAGE |<-------------');
|
||||
|
||||
//Wait until the element exists in the DOM
|
||||
const exactLogo = await driver.wait(
|
||||
@@ -2097,8 +2096,8 @@ const steps = [
|
||||
}
|
||||
|
||||
//Trigger validation by clicking Start Your Free Trial button
|
||||
await driver.findElement(By.css('#password')).sendKeys('EdGate123');
|
||||
console.log('----->| NEXT ACTION: Entered Password: EdGate123');
|
||||
await driver.findElement(By.css('#password')).sendKeys('Etest123');
|
||||
console.log('----->| NEXT ACTION: Entered Password: Etest123');
|
||||
|
||||
await driver.findElement(By.css('.btn')).click();
|
||||
console.log('----->| NEXT ACTION: Clicked Start Your Free Trial button');
|
||||
@@ -4722,7 +4721,7 @@ const steps = [
|
||||
console.log('----->| NEXT ACTION: Entered Username: exact_juan');
|
||||
|
||||
await driver.findElement(By.css('.passfield')).sendKeys('Edgate1!');
|
||||
console.log('----->| NEXT ACTION: Entered Password: Edgate1!');
|
||||
console.log('----->| NEXT ACTION: Entered Password: ********');
|
||||
|
||||
await driver.findElement(By.css('.login')).click();
|
||||
console.log('----->| NEXT ACTION: Clicked Login button');
|
||||
Reference in New Issue
Block a user