Questions tagged [wdio-jasmine]

11 questions
2
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
  • 93
  • 1
  • 6
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
  • 6
2
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,279
  • 4
  • 30
  • 78
1
vote
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
  • 133
  • 1
  • 14
1
vote
2 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
0 answers

Import modules in WDIO test REPL with NODE v12

While trying to do imports in WDIO v6 REPL terminal with NODE version v12.16.0. facing the following errors while trying to import a method from a module .... I tried 2 ways "require" and "import" ... any help is truly appreciated. error when using…
0
votes
0 answers

Why do WebdriverIO errors bleed into the next test?

When a single test fails, it is reported out as two test failures because the next set's beforeAll fails for the reason of the prior test failing. Is this behavior caused by the Jasmine option expectationResultHandler or something else I can modify…
ItsASine
  • 141
  • 3
  • 12
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
0 answers

How to test tabs using webdriverio

How to test tabs in wdio? I found no method in WDIO except switchWindow method but it did not help, as I need to test the current tab. Though I used getCurrentTabId() I did not understand, it gives a wierd number I did not understand!! and any idea…
Benison
  • 91
  • 1
  • 12
0
votes
1 answer

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
  • 789
  • 1
  • 11
  • 24