Questions tagged [wdio-jasmine]

12 questions
4
votes
1 answer

Webdriver.io (wdio) - Browserstack - waitforDisplayed fails

I'm working on some tests with wdio 6 (on my way to upgrade it to 7) and I've been receiving this error on a very simple test it('Renders unit list', () => { $('.unit-list .bookable-unit-details:first-child').waitForDisplayed(); …
MikeVelazco
  • 885
  • 2
  • 13
  • 30
4
votes
2 answers

WebdriverIO and Angular, writing e2e tests in typescript that import classes (Cannot use import statement outside a module)

I am trying to get a wdio set of e2e tests working. Some of the tests use some utility classes written in typescript. When the test is being compiled it is falling over this error: Spec file(s):…
Rob Gansevles
  • 143
  • 1
  • 10
4
votes
2 answers

Webdriver.IO - check in a non-blocking way whether an element exists

Rookie question. I am using webdriver.io to write Appium end to end tests. I am using these commands to check the presence of an element: $(selector) browser.waitForVisible(selector, timeout,…
Gabe
  • 5,997
  • 5
  • 46
  • 92
3
votes
3 answers

WebdriverIO-Jasmine Async function did not complete within 10000ms

I am using WDIO with Jasmine and Chai. I am getting the below error and I have been trying to find the root cause for more than a day now. Error: Timeout - Async function did not complete within 10000ms (set by…
Afsal
  • 404
  • 3
  • 7
  • 24
2
votes
2 answers

Increment the value in a TextBox using the Arrow Inside the Box

In an automation code, I want to fill the text-box with a number greater than 0. setvalue() doesn't work. A user would have to click on the up arrow (see picture) to make the text-box editable. How can I make this happen?
RSSregex
  • 179
  • 7
1
vote
3 answers

wdio+jasmine reRun/retry single test spec it('',()=>{},3) doesn't work

I am using "wdio" with "jasmine" test framework and trying to reRun a single test spec following https://webdriver.io/docs/retry.html but retry is not happening. I am running following code using wdio sync runner like this - ./node_modules/wdio…
Ankur A
  • 11
  • 1
0
votes
1 answer

WebdriverIO + Jasmine: How to exclude a specific test file when running a suite based on that test file name

We are on latest 8.X WebdriverIO version and latest Jasmine 4.X at this moment, using latest Node 18.X. In my Wdio.conf.js file I have suite: all: [ 'path/test1.js', 'path/test2.js'], test1.js has a Describe with value "SMOKE test 1", while test2.js…
Goran
  • 21
  • 2
0
votes
1 answer

Is there a way to skip all tests in a suite if a certain conditions fail - JavaScript Jasmine?

Is there a way to skip all tests in a suite if a certain conditions fail? I.e) if the webpage is not opening, there is no point in running the rest of the tests, because they all depend on the webpage opening before any tests are run. We can use…
Suzy
  • 231
  • 4
  • 14
0
votes
0 answers

after npm install webdriverio ./node_modules/.bin/wdio: No such file or directory

I cannot find node_modules/.bin/wdio after having installed on W10. So, I cannot run Appium tests Thanks for any support Lorenzo
LorenzoGi
  • 256
  • 4
  • 14
0
votes
1 answer

How can I access the file name a test runs in from inside the afterTest hook in a wdio config file?

I am trying to access the file name each test runs in from the afterTest hook in my wdio config file. However, none of the parameters provided to the hook includes the file name. I tried maybe getting the file name from the onWorkerStart hook, since…
0
votes
1 answer

How to get pseudo elements in WebdriverIO+Appium

I want to get a value (content) from the CSS of a pseudo element (::before) while inside a test made using WDIO and Appium for an Android hybrid app because the designer has stored the current responsive-design state there. So my tests would know…
0
votes
2 answers

Webdriver.IO: How do I run a specific 'it' statement in Jasmine using WDIO

I am trying to pull out a smoke suite from my regression suite written using the Jasmine framework (wdio-jasmine-framework). Is it possible to just add a tag on specific testcases in Jasmine?
user3920295
  • 889
  • 2
  • 13
  • 31