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
0 votes
2 answers
30 views

How many it() should I use in my test files?

I'm fairly new to Cypress and I'm using it with TypeScript. For each persona, I have a file like this: {desired-persona}.ts.cy In each of these files, I have 1 describe and one it that includes the ...
Keipro's user avatar
  • 29
0 votes
1 answer
532 views

Chrome driver and chrome browser version is matching but selenium tests are failing

I am trying to resolve a compatibility issue between Chromedriver and Chrome browser, but none of the solutions I have tried have worked so far(mentioned below). I have latest chrome driver and chrome ...
Megha's user avatar
  • 73
0 votes
1 answer
120 views

How to resolve "Error: TypeScript compilation failed." issue in Gitlab CI?

I'm trying to learn to create a pipeline in Gitlab. All my tests fail because of the compilation issue. My code is included below along with the error message. import loginPage from "../...
Syrus's user avatar
  • 1,197
0 votes
1 answer
144 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 ...
ciupakabrans's user avatar
2 votes
1 answer
46 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
ratman330's user avatar
2 votes
1 answer
899 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 ...
Dougg's user avatar
  • 49
0 votes
1 answer
127 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 ...
Saur100's user avatar
  • 21
-1 votes
1 answer
4k 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' ...
RajKon's user avatar
  • 101
0 votes
1 answer
284 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 ...
sid's user avatar
  • 11
1 vote
2 answers
3k 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?
STE's user avatar
  • 749
1 vote
1 answer
4k 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 ...
JayeshB's user avatar
  • 11
0 votes
1 answer
1k 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 ...
AdamAz's user avatar
  • 11
1 vote
1 answer
478 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 ...
D.Aizenberg's user avatar
1 vote
2 answers
1k 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 ...
Sanjani Gunathilaka's user avatar
3 votes
1 answer
1k 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 ...
tehbeardedone's user avatar
1 vote
1 answer
776 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 ...
Dona's user avatar
  • 21
2 votes
3 answers
7k 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/...
Steven Rutherford's user avatar
4 votes
2 answers
17k 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 ...
demouser123's user avatar
  • 3,532
6 votes
2 answers
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 ...
alecxe's user avatar
  • 11.4k