Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

By2 not compatible with Locator #150

Open
canon-aris-van-dijk opened this issue Oct 18, 2023 · 0 comments
Open

By2 not compatible with Locator #150

canon-aris-van-dijk opened this issue Oct 18, 2023 · 0 comments

Comments

@canon-aris-van-dijk
Copy link

By2 from selenium-appium is not compatible with Locator from selenium-webdriver. The error displayed is:

Argument of type 'By2' is not assignable to parameter of type 'Locator'.
  Property 'toObject' is missing in type 'By2' but required in type 'By'.ts(2345)

Using the following versions:

  "devDependencies": {
    "@tsconfig/node18": "^18.2.2",
    "@types/jest": "^29.5.5",
    "@types/selenium-webdriver": "^4.1.17",
    "eslint": "^8.51.0",
    "eslint-config-prettier": "^9.0.0",
    "eslint-plugin-import": "^2.28.1",
    "eslint-plugin-jest": "^27.4.2",
    "jest": "^29.7.0",
    "selenium": "^2.20.0",
    "selenium-appium": "^1.0.2",
    "selenium-webdriver": "^4.14.0",
    "ts-jest": "^29.1.1",
    "ts-node": "^10.9.1",
    "winappdriver": "^0.0.7"
  }
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant