2

The implementation of webdriverIo is slightly different from selenium. In webdriverIO $('table').$$('td') will check for direct child 'td under 'table', and as td is not a direct child it won't return anything. instead, try: $('table').$$(' td') (See if this works) or $$('table td') Space in 'CSS' is similar to // in xpath Better raise issue with ...


1

WaitForExit() checks only for the presence of and not the visibility. You could use $(selector).waitForDisplayed instead. And also ensure there is no other element with the same selector.


1

I suggest use pipeable operators : example In TypeScript 2.3 and lower, typings will need to be added to functions passed to operators, as types cannot be inferred prior to TypeScript 2.4. In TypeScript 2.4, types will infer via composition properly. TS 2.3 and under range(0, 10).pipe( map((n: number) => n + '!'), map((s: string) => 'Hello, ' + ...


1

"And" is replaced internally with either "Given", "When", or "Then" since it is an extension of one of those lines. In your case, replace: and('the credit card CVC is "([^"]*)"', function(CVC) { //code here }) with: when('the credit card CVC is "([^"]*)"', function(CVC) { //code here }) And make the same change with the line that follows.


1

One alternative is to use Feature Flags. With these, you can, at compiling time, pick blocks of code, depending on configuration. For instance (pseudo-code): def request_handler(request): #ifdef TESTING_MODE return HTTP(500); #endinf .... production code... TESTING_MODE variable would be set in a kind of config.json file or during the ...


Only top voted, non community-wiki answers of a minimum length are eligible