What's the deal with Deno? We talk with a major contributor to find out. Listen now.

Questions tagged [typescript]

TypeScript is a typed superset of JavaScript created by Microsoft that adds optional types, classes, interfaces and modules and compiles to plain JavaScript. TypeScript includes advanced features such as generic types, type inference, lambda functions, string templates (interpolation), destructuring and more.

Filter by
Sorted by
Tagged with
1
vote
1answer
135 views

Typescript function not waiting for the waitForExist() and printing the next line

I'm using webdriverIO with typescript and jest to automate react application. I have a simple test to check how long it takes for a particular element to display on the screen. There's a process ...
0
votes
1answer
32 views

Assert that options (text) in drop down are unique

I’m creating test in cypress using typescript, I’m not sure how to assert that all options in drop down are unique - I found bug where is situation that values are duplicated multiple times - it’s a ...
1
vote
2answers
626 views

How to enter acceptable fake data to login page which is tests using protractor?

I am completely new to the protractor and currently, I'm testing my login page using my own login data and I want to use dummy data as profile login data. Can these enter in my spec.ts file or ...
2
votes
3answers
5k views

Scrolling to Bottom of the Text Area using Protractor

I have a text field that I need to scroll to the bottom of in order for the Next button to be activated to click. This project is using Angular 6 my tests are end to end test running on the protractor/...
0
votes
1answer
22 views

Is there a way to write protractor tests to test on devices plugged into my pc not via browserstack

we are trying to save some money and have devices here already to test on, is there a way i can setup my tests to run on them ? Thank you in advance
0
votes
1answer
85 views

How to pass automation test case data from TFS to Protractor using Cucumber/Jasmine

I am using Visual Studio Code, Protractor, Typescript and Jasmine to build test cases fro Angular website. I need to pick test data from Team Foundation server(TFS) only. It was possible in Coded UI ...
-1
votes
1answer
337 views

how to get list of files in a directory recursively in Cypress?

I wrote this code and it works fine, that is written in TypeScript. When I use the same code in the test file in Cypress I get error TypeError: fs.readdir is not a function import * as fs from 'fs' ...
3
votes
1answer
817 views

ElementArrayFinder.filter() - how does it work under the hood?

In my UI, I have a project tree that contains a list of components that are in a project. Once my current spec is done running I'm calling a page object function to delete all the components to clean ...
0
votes
2answers
783 views

How to tell protractor to wait for each command for 3 seconds

I am running angular e2e scripts. I am adding explicit wait for every element. Instead, is it possible to tell protractor to delay 3 seconds for every command?
0
votes
1answer
87 views

How to generate Excel test report from Appium with mocha chai?

I would like to generate a simple test report in Excel. My automation is using Appium with chai mocha, and successfully reports the results of my 2 test cases to the command line. How can I send ...
1
vote
1answer
193 views

How to wait till next page opens after a button click in Jest + TypeScript?

I want to pass or fail the tests of "Login" function based on fields available on the second page. I used "xpath" to capture the fields. But it does not capture the fields of the second page. I ...
1
vote
1answer
638 views

How do I store a value in a global variable and then use it in subsequent steps of a scenario in protractor cucumber typescript based project

I want to retrieve a value in 'Given' function and then store it in a global variable so that the value is accessible in subsequent steps of a scenario in protractor cucumber typescript based ...
0
votes
1answer
631 views

Selenium-Webdriver Edge extension loading issue

I'm creating a base for automated testing of a browser extension, using typescript, selenium-webdriver (https://www.npmjs.com/package/selenium-webdriver latest version) and windows 10. The problem ...
1
vote
1answer
355 views

webdriverIO typescript execute function doesn't recognise JS execution code

I'm working with webdriverIO on a typescript environment, and I'm trying to use the browser.execute function, but typescript keeps identifying the code that I'm writing within the callback function as ...
6
votes
2answers
2k views

Switching from JavaScript to TypeScript for Protractor e2e tests

Not very long time ago, Protractor itself migrated to TypeScript internally. I've also heard and seen several Protractor test projects moving to TypeScript. We have a rather big and growing test ...
4
votes
2answers
15k views

Correct Strategy for Element to be not present in DOM

I have scratching my heads around this problem for two days. I have a test where I need to check if a spinner is not visible to the user. This is the first test of a series of tests, and until the ...