Unable to find element

abhaydhar
abhaydhar Architect Posts: 4 🧑🏻‍🚀 - Cadet
edited September 2023 in Spryker Development

Trying to resolve this error on codecept. Any inputs appreciated.. Getting this issue on b2bdemoshop as well

[Facebook\WebDriver\Exception\NoSuchElementException] no such element: Unable to locate element: {"method":"css selector","selector":"#side\2D menu"}
(Session info: headless chrome=108.0.5359.125)

Answers

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,071 ⚖️ - Guardians (admin)

    Heyhey,

    I move the thread out of the development environment category to the more general spryker category.

    Can you please provide more information? Is this a standard test which is failing? Are you sure your css-selector is correct? Based on the page https://www.w3schools.com/cssref/css_selectors.php there is no backslash as css-selector.

    All the best,

    Florian

  • abhaydhar
    abhaydhar Architect Posts: 4 🧑🏻‍🚀 - Cadet

    The failing tests are from the b2b-demo-shop and the test case flow is to login the user , the login is failing,because the username/password seems to be hardcoded on the generated file and there is no way to override the credentials. the css selector is the post login menu, since the login fails , the overall test case fails.

    for now we have ignored the testcases which we copied from the b2b-demo-shop and only running our custom test cases