fsprojects / Canopy.Mobile

Canopy testing framework for mobile apps
https://fsprojects.github.io/Canopy.Mobile/
MIT License
14 stars 12 forks source link

Canopy.Mobile can't find any selectors on a website #34

Open adalenthya opened 6 years ago

adalenthya commented 6 years ago

Description

On a website, I tried to:

Repro steps

  1. Open up any browser on an Android emulator
  2. Load a website (ex: https://www.commercialcafe.com/)
  3. Try to Read , Click or Write any selector.

Expected behavior

Does Canopy.Mobile work only for mobile applications? I would expect to be able to use it for websites automation too.

Actual behavior

canopy.mobile.Exceptions.CanopyException was unhandled by user code Message: An exception of type 'canopy.mobile.Exceptions.CanopyException' occurred in canopy.mobile.dll but was not handled in user code Additional information: Failed to click "#Location", because it could not be found. Did you mean?: ["Boston"; "Houston"; "button"; "section"; "Austin"]

Related information

forki commented 6 years ago

it's only for apps. Try proper https://lefthandedgoat.github.io/canopy/

adalenthya commented 6 years ago

Already using Canopy for desktop website. Would've wanted to use canopy.mobile for mobile views, instead of resizing the browser to a mobile resolution. But maybe i'll reconsider this, thank you.