Questions tagged [webdriver-io]

WebdriverIO from webdriver.io is a JavaScript library for controlling browsers with Selenium server via the WebDriver API.

WebdriverIO is an independent implementation of the WebDriver Protocol which provides language bindings and APIs to automate browser or mobile devices. Its test runner allows you to write your tests in a synchronous way so you’re not constantly in the world of asynchronous coding. WebDriverIO integrates easily with a variety of cloud browser testing vendors (for example, Sauce Labs, BrowserStack and CrossBrowserTesting), so you can perform tests on a wide variety of OS/Device/Browser combinations, all from one test.

1803 questions
0
votes
1 answer

How to Trigger WebdriverIo framework locally (Source Code) within Jenkins?

How to Trigger WebdriverIo framework locally (Source Code) within Jenkins? I'm able to trigger and target the wdio file (Triggering automation tests) if I upload the project to Git using Jenkins: 'Source Code Management' > Git and then point to the…
SamP
  • 417
  • 5
  • 24
0
votes
1 answer

How to create dynamic xpath using for loop in nodejs cucumber selenium

How to create dynamic xpath using for loop in nodejs(selenium), for example: ListcolHeader= rowVals.get(0).findElements(By.tagName("th")); System.out.println("Header values:"); for(int i=0; i
0
votes
1 answer

WebdriverIo doesn't seem to exclude my folder containing Page Object Files

My wdio file contains the following code: specs: [ 'tests/*.js' ], // Patterns to exclude. exclude: [ 'POM/*.js' ], Exception Message: ERROR: Cannot find module 'POM/LoginPage.js' Please note: Only seems to be affecting windows machine. My…
SamP
  • 417
  • 5
  • 24
0
votes
1 answer

Browser.click is giving "element not visible error"

This is my code var assert = require('assert'); var options = { desiredCapabilities: { browserName: 'chrome' }} describe('It should navigate to beta- website on clicking publisher logo, ', function() { it('Go to thequint beta…
0
votes
1 answer

Trying to understand browser.elementIdText command

I couldn't find much information or useful examples to understand how this method works on a Javascript UI testing framework. I have the following element which is returned in an array: console.log(elementarray[0]); { ELEMENT: '25', …
j obe
  • 1,759
  • 4
  • 15
  • 23
0
votes
1 answer

webdriverio appium browser lauch on iOS device error

I am getting following error when tried to launch safari browser on ios device using webdriver.io and appium. ERROR: An unknown server-side error occurred while processing the command. Original error: Could not initialize ios-deploy make sure it …
Ram Vadranam
  • 485
  • 5
  • 14
0
votes
1 answer

Webdriverio unable to lauch appium service shows error connect ECONNREFUSED 127.0.0.1:4723

Webdriverio unable to lauch appium service shows error connect ECONNREFUSED 127.0.0.1:4723. Following is the configuration setup using webdriverio running appium service. capabilities: [ { maxInstances: 1, browserName:…
Ram Vadranam
  • 485
  • 5
  • 14
0
votes
2 answers

Why with Webdriverio the action Double Click doesn't work

When calling doubleClick() as shown in the code below,it only makes one click at the level of the chosen selector but not double clicking it.However, double click is one of the webdriverio API, i didn't understand why doubleclick does not work. I…
Lina
  • 553
  • 10
  • 34
0
votes
1 answer

Webdriver.io browser.elementIdDisplayed(ID) is not returning boolean

I'm trying to use webdriver.io function browser.elementIdDisplayed(element.ELEMENT), but it doesn't return a boolean as the docs says. Instead it returns some kind of object. I'm confused, how can I get a value from this if the element is displayed…
mismas
  • 1,236
  • 5
  • 27
  • 55
0
votes
3 answers

I'm trying to connect to a qt application using webdriver-io

I'm trying to connect to a qt application using webdriver-io and It is not able to access the port and does not communicate with the qt part of the application. I could get it to work with Java using the below setup. // Setup QtWebDriver …
N1992
  • 1
  • 1
0
votes
1 answer

Is expected that tests that works on chrome, fails on firefox?

I have a test that pass on chrome, but fails on firefox. Here the test: Scenario.only('Test', (I) => { I.see('token') I.click('.fa-edit') I.wait(1) I.fillField('input.EditableTitle__input','enkot') I.see('enkot'); fails…
Matheus Souza
  • 55
  • 1
  • 6
0
votes
1 answer

Appium takes more than 5 min to get response while automating iOS app

I Have observed that when I first time run my script that will run very fast without any delay response. However, immediately, if I run the same script without any changes or closing simulator or any kind of reset, following POST request takes more…
Neerajkumar
  • 300
  • 4
  • 19
0
votes
1 answer

How to run npm variables during run time (process.env.SERVER) on a windows machine using Cmder?

I have created a NodeJs, Selenium and webdriverio framework, but struggling to run npm variables during rune time (The same setup works on a mac). My wdio file: if(process.env.SERVER == "prod") { baseUrl =…
SamP
  • 417
  • 5
  • 24
0
votes
1 answer

Move selectors on page with webdriverio

from and to is "buttons" in a slider to change the from and to time. I´m having problem how to move these buttons in webdriverio. Below is an example how i want to do it, but nothing happens. let from = browser.element('#from'); let to =…
jaikl
  • 971
  • 2
  • 9
  • 23
0
votes
1 answer

How can I wait to electron while loading html

I have an electron app which loads an HTML file on opening. When I tried to wait for an element with waitUntil method from the opening page, Spectron tries to find that while page loading and it crashes my app and app staying at the blank page. How…
sayhan
  • 1,168
  • 1
  • 16
  • 22
1 2 3
99
100