Skip to content
This repository was archived by the owner on Aug 24, 2021. It is now read-only.
This repository was archived by the owner on Aug 24, 2021. It is now read-only.

eyes.checkWindow and eyes.check received the error: Locator Strategy 'css selector' is not supported for this session #72

Description

@rachCr

Issue: For ios native app, when we used eyes.checkWindow or eyes.check, it fails with " InvalidSelectorError: Locator Strategy 'css selector' is not supported for this session"

Used : Javascript, Eyes, webDriver, appium
Code:
let wd = require('selenium-webdriver'),
desiredCaps = {
app: ''
platformName: 'iOS',
automationName: 'XCUITest',
deviceName: 'iPhone X',
platformVersion: '12.2',
browserName: ''
};
const apiKey = '';
var Eyes = require("@applitools/eyes-selenium").Eyes;
var eyes = new Eyes();
eyes.setApiKey(apiKey);
let driver = await new wd.Builder().usingServer("http://localhost:4723/wd/hub").withCapabilities(desiredCaps).build();
await eyes.open(driver, "my app", "login Test");
await eyes.checkWindow('Login');
await eyes.close();

error attached:
error.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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