Skip to content

By2 not compatible with Locator #150

Open
@canon-aris-van-dijk

Description

@canon-aris-van-dijk

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"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions