Import paths for Protractor and Selenium-Webdriver libraries are giving error in latest Cypress 10 version, how can I update these?

Viewed 22

Import statements to use libraries for common methods class

import { browser, ElementFinder } from "protractor";  //cannot find module 'protractor' or its corresponding type declarations
import { protractor } from "protractor/built/ptor";  
import { Alert } from 'selenium-webdriver';          //cannot find module 'selenium-webdriver' or its corresponding type declarations
const support = require('protractor-firefox-support');

let EC = protractor.ExpectedConditions;
let condition: any;
let currentDate: any;
let day: any;
let month: any;
let year: any;
let newDate: string;
0 Answers
Related