My current project involves running tests with Jasmine and WebdriverIO, which I want to automate using CircleCI. As someone new to testing, I'm a bit unsure of the process. Here's what I've gathered so far: To run the tests, I use npm tes ...
I am having some trouble with the 'waitForEnabled' function as it does not seem to behave like Webdriver's elementToBeClickable. Is there anyone who can provide some guidance on how to use this API effectively? ...
After upgrading from an ancient version of cucumber-js (4.2.1) to a more recent one (7.2.1), I am facing an issue where I can no longer determine the line in my feature file where a test is failing. My setup involves using cucumber with Webdriver.io (v7.7) ...
Currently, I am in the process of running an automation test on SauceLabs using WebdriverIO version 5. One of the tests involves uploading a file to Microsoft Edge. Below is a snippet of the code for reference: const path = require('path'); const filePath ...
While working on a webdriver.io automation project, I encountered an issue with recognizing objects in my page object file (login.po.js) when calling them in the test spec file (test.spec.js). The error message displayed is LoginPage.username.setValue is n ...
I'm attempting to execute my WebdriverIo Specs using (npm run test-local) and encountering an error even though I have all the necessary dependencies listed in my package.json as shown below: [0-2] Error: Failed to create a session. Error forwarding the ...
I have put in a lot of effort trying to find the solution before resorting to asking this question, but unfortunately I have not been successful. All I need to know is how to send special characters (such as the enter key and backspace) with Node.js using ...
I am currently executing a test with WebDriver.io using the npm package gulp-wdio on selenium-standalone. The code snippet I am using in gulp is as follows: gulp.task('e2e', function () { return gulp.src('wdio.conf.js') .pipe(wdio({ wdio: { ...
Currently, I am in the process of creating acceptance tests utilizing Selenium and WebdriverIO. However, I have encountered a problem where I am unable to successfully click on a specific link. client.click('a[href=#admin/'+ transactionId + &apo ...
I attempted the usual var elementForMs = driver.findElement(By.xpath(selector)); driver.executeScript("arguments[0].click()", elementForMs); as well as var elementForMs = driver.findElement(By.css(selector)); driver.executeScript("arguments[0].click()" ...
My goal is to set up a pipeline in GitLab for running WebdriverIO TypeScript and Cucumber framework tests. I am encountering an issue when trying to execute wdio.conf.ts in the pipeline, resulting in this error: GitLab pipeline error Below is a snippet of ...
I am currently learning how to conduct UI testing using Jasmine and WebdriverIO in conjunction with NodeJS. Below is a snippet of my test code: const projectsPage = require('../../lib/pages/projects.page'); const by = require('selenium-webdriver').By; ...
I'm currently working with WebDriverIO and I have a specific requirement: Execute a single test before any other tests (createNewUsers) Utilize certain capabilities (proxy settings) for this initial test Afterwards, switch to using default capabilit ...
Lately, I've encountered an issue while attempting to execute my webdriverio tests following an upgrade of my node version. The error message that now pops up is: 2022-01-11T12:45:05.628Z DEBUG @wdio/config:utils: Couldn't find ts-node package, n ...
Hello everyone, I'm a newcomer to the world of JS and Node.js and I'm facing some issues while trying to set up a webdriverio project using cucumber and PageObject. Whenever I attempt to run a test, I encounter this error message: ERROR: Cannot ...
Currently, I am attempting to execute my selenium tests using webdriver.io. However, the test runner is encountering failure when attempting to establish a session: [18:12:36] COMMAND POST "/session" [18:12:36] DATA {"desiredCapab ...
Currently, I am using Webdriver.io and facing a challenge in selecting an element within the "text-fields-container" class. This particular element happens to be a password field, and both classes share the same name. Can someone guide me on how to go abou ...
Alright, the objective is simple. I need to ascend from the root to obtain its parent element. Following the webdriver documentation, it should resemble something like this: it('should retrieve the class from the parent element', async () => { const el ...
I've encountered a strange issue while using the WebdriverIO functions setValue and addValue. It seems that whenever my string contains the number 3, it is mysteriously removed and not entered into the input boxes. I can manually type 3 into these inp ...
Currently, I am developing a REact based CMS application that features a form with multiple carousels. I am encountering an issue where the webdriverio implementation is unable to locate an element, even though the same xpath works fine when tested manua ...
Is it possible to run two wdio.config.js files with different configurations, one after another? Here is how the first configuration file is defined in the code: const { join } = require('path'); require('@babel/register') exports.config = { maxInst ...
Can someone assist me in understanding the process of setting up a testing framework using Appium, Webdriverio, Node.js, and Jasmine? I have already set up my wdio.conf.js file: host: '127.0.0.1', port: 4723, path: '/wd/hub', .... specs: [ ' ...
Here is the code snippet I'm working with, which checks for expected text: console.log(typeof browser.getText('.modal.modal--primary.pin-container h1')); expect(browser.getText('.modal.modal--primary.pin-container h1')).toContain("Enter PIN"); The output ...
As I continue to learn WebDriverIO and adjust to MacOS, I encountered an error while trying to execute a spec file using "npm run test:wdio". The error message is as follows: > [email protected] test:wdio /Users/vinicius.correia/Desktop/dev/automat ...
When I first tried to learn how to write automated tests for a small project, I faced some difficulties as things weren't working smoothly right from the start. After spending a couple of hours searching and experimenting, I finally found the correct confi ...
I am working on an automation framework using webdriver.io v5. I need to receive a boolean response from the code snippet below: waitAndCheckForContactToBePresent(contactName) { return browser.waitUntil((value) => { return this.chec ...
Is there a way to configure Selenium Standalone and webdriverio to accept insecure self-signed certificates? I have been trying to find information on how to do this but haven't had any luck. Here is the code I am currently using: const assert = re ...
Upon running tests from wdio using the command 'wdio wdio.conf.js', an Error followed by html code of selenium page is being encountered. The package.json file contains the following configuration: { "name": "OpenWeathermap", "version": "1.0.0", "d ...
I added @wdio/cli to my project using the command 'npm i --save-dev @wdiocli'. Next, I ran 'npx wdio init' and chose 'cucumber', 'selenium-standalone-service', 'typescript', 'allure' along with the default options for the rest. This process resulted in d ...
I'm in the process of creating a UI framework utilizing WebDriverIO within VSC. So far, everything is running smoothly, but I've encountered an issue where using XPath like the one below results in everything after //* being interpreted as a comm ...
I'm currently utilizing webdriverio version 4.5: ./node_modules/.bin/wdio -v v4.5.2 In my scenario, I am in need of waiting for the existence of a specific element and handling the situation if it doesn't exist. Here is an example code snippet ...
I have been conducting experiments with a cloud computing service provider named LambdaTest for running Selenium and Appium tests while utilizing webdriverio. All of the company's websites utilize Basic Auth, and it seems like this method will remain ...
When using webdriverIO to retrieve an array of checkboxes within a specific div id, I utilized the following code: browser.elements('div[data-test-id="filter: inventory source"] input[type="checkbox"]').value; The result is as follows: [ { ELE ...