This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Step = require('./step'); | |
const container = require('./container'); | |
const methodsOfObject = require('./utils').methodsOfObject; | |
const recorder = require('./recorder'); | |
const event = require('./event'); | |
const output = require('./output'); | |
/** | |
* Fetches all methods from all enabled helpers, | |
* and makes them available to use from I. object |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const outputFolder = './output'; | |
exports.config = { | |
output: outputFolder, | |
helpers: { | |
Puppeteer: { | |
url: 'http://google.com', | |
show: true, | |
chrome: {} | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const assert = require('assert'); | |
const axios = require('axios'); | |
let Helper = codecept_helper; | |
class MyHelper extends Helper { | |
async runMyAssert(expect) { | |
assert.equal(true, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature('Page Object Examples'); | |
Scenario('Call page object function', async (I, testPageObj) => { | |
I.amOnPage('/'); | |
const res = await testPageObj.getSomething(); | |
console.log('page object result', res); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Install-SeleniumService { | |
[cmdletBinding()] | |
Param( | |
[string] $Name = "SeleniumServer", | |
[string] $InstallPath = "C:\selenium" | |
) | |
$JavaPath = Get-Command "java.exe" | Select-Object -Last 1 -ExpandProperty Definition | |
if (!(Test-Path $InstallPath)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let webdriverio; | |
const requireg = require('requireg'); | |
const Helper = require('../helper'); | |
const stringIncludes = require('../assert/include').includes; | |
const { urlEquals, equals } = require('../assert/equal'); | |
const empty = require('../assert/empty').empty; | |
const truth = require('../assert/truth').truth; | |
const { | |
xpathLocator, fileExists, clearString, decodeUrl, chunkArray, | |
} = require('../utils'); |
NewerOlder