Comments (4)
Assuming this is an Android hybrid app, this makes sense, as the id
locator strategy is not part of the W3C spec. Chrome runs in W3C mode by default, so it will only work with the available W3C strategies, of which the only one here is xpath
.
However, you can disable Chrome's W3C mode, and the recorder will then be able to use other strategies. You can do this by starting the Inspector session with the "appium:chromeOptions": {"w3c": false}
capability.
Check the UiAutomator2 web context capabilities for more info.
from appium-inspector.
Thank you! "appium:chromeOptions": {"w3c": false}
is working.
from appium-inspector.
This depends entirely on the suggested locators generated for your element. If the Inspector only generates XPath - that is what the Recorder will use. If the element has a unique ID and the Inspector suggests that, then the Recorder will pick that:
from appium-inspector.
The elements has unique IDs available, but still it uses the XPath.
Note: I am running it for hybrid application.
from appium-inspector.
Related Issues (20)
- feature request: Upgrade electron HOT 1
- Appium inspector: Unable to inspect an element HOT 2
- "t is not a function" error on latest release HOT 1
- After clicking refresh button on Appium inspector it remains in the loading state for a long time HOT 3
- Could not find a driver for automationName ‘Windows’` HOT 10
- bug: improve translateRecursively performance HOT 9
- [Session] Failed to get Session ID when start the session HOT 3
- bug: Failed to create session. An unknown server-side error occurred while processing the command. HOT 12
- bug: <Cannot use AppiumBy.ID even though it is suggested from Appium Inspector> HOT 6
- Unable to open application on mac HOT 1
- Please report this issue at: https://github.com/appium/appium-inspector/issues/new/choose Full error trace: TypeError: t is not a function HOT 2
- feature request: Selected Element Find By xpath HOT 11
- bug: Inspector hangs and app freezes as soon as session begins HOT 13
- feature request: Linux arm64 version HOT 6
- bug: Inspector does not open. HOT 2
- Report do instalador windows HOT 2
- bug: "Gathering initial app source…" HOT 9
- bug: When pressing Refresh Source & Screenshot real device becomes unresponsive and times out. HOT 11
- feature request: When copying an accessibility ID that contains a newline, please use "\n" instead of the actual newline character. This will make it easier to paste the ID directly into code. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appium-inspector.