Category : webdriver-io

HI can i able to print the ‘bookingPreferences’ value in the console ? let bookingPreferences = { destination: hotel.ancestorDestination.name.toLowerCase (), destinationId: hotel.ancestorDestination.shortId, checkInDate: new moment ().add (dateCount, (dateScale.includes (‘month’) ? ‘months’ : ‘days’)).format (‘YYYY-MM-DD’), checkOutDate: new moment ().add (dateCount, (dateScale.includes (‘month’) ? ‘months’ : ‘days’)).add (6, ‘days’).format (‘YYYY-MM-DD’), partyMix: { adultCount: 1, childCount: 0, nonAdultAges: ..

Read more

I am working on automating some tests using webdriverIO. I am getting error while calling basic functions in webdriverIO. Even if I call $(‘some css’).click() Its giving an error TypeError: $(…).click is not a function I am fed up now. Please help. Sample code describe("Verify menu options", function() { it("Verify Menu options", function() { $(‘button#sitenav-v2-sidenav-toggle’).click(); ..

Read more

Maybe i asked wrong question. i’m trying to test some site, and have this throw in terminal terminal output it’s obvious, that function returns uuid after it was called in code. here’s my code : file.js describe(‘final homeTask’, () => { it(‘firstassigment’, async () => { let mainPage = require(‘../page/main.pageHW.js’) await browser.url(‘https://github.com/’) let signUpButton = ..

Read more

I try to create test to compare screenshots, using WebdriverIO with Image Comparison Service. In ‘sync’ mode everything is ok. But I want to use ‘async’ mode, since ‘sync’ mode will not be supported anymore (https://webdriver.io/docs/sync-vs-async). For ‘async’ mode my test looks like this: describe(‘Example’, () => { it(‘should save some screenshots’, async () => ..

Read more

Trying to invoke a script in WEBDRIVERIO_OPENBOT capability in botium.json Script as follows: module.exports = async (container, browser) => { await browser.url(https://www.orangehrm.com/); await browser.maximizeWindow(); await browser.pause(5000) } Getting following error: Error: WebDriver error on startup: Command "maximizeWindow" is not yet implemented Source: Ask Javascript..

Read more

Is it possible to create a global map variable that can be updated and accessed between all test instances in a WebdriverIO project? I’m making API calls that return an ID for each capability configuration, but the IDs need to be stored in a key/value variable that can be accessed by all test instances so ..

Read more