-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Provide error if locator is not supported by Selenium Server #1632
Comments
How are you running protractor with selendroid? |
Oh, that's a fun story, but I'll skip the details :)
Two things to keep in mind:
Don't yell at me for overriding your library functions, I like not having to refactor tests. :) |
I'm not sure there's a general way to address this issue. We don't test on selendroid at the moment - I think the larger issue here is that Protractor needs to set up some of our test cases with some mobile strategy (figuring out what's at the forefront now - I believe that appium is only using selendroid for older versions (android 2.3-), so I'm not sure if it will feature in our final decision, but this is still pending. |
Update: If you're considering completely dropping support for Selendroid and focusing on Appium, I would personally recommend against that. In my experience, Selendroid is faster (which is critical on our painfully-slow-running device E2E tests) and Appium has more "hidden" bugs. When testing my app, I've noticed that Appium will fail on clicking certain buttons (the click won't actually go through, but no error is reported) while Selendroid performs the action perfectly. I understand that supporting two different frameworks for device testing (Appium due to iOS support, Selendroid due to above - hopefully) is far more difficult, but the benefits are far better for us Protractor end users |
I think I'm going to close this issue since the original premise isn't something we need to address. However, deciding on better mobile support is definitely on our todos. We've started to clarify the docs, and better support will be coming soon. |
See the issue posted on the Selendroid issue tracker.
I'm running my tests for a hybrid app on an Android tablet. After properly configuring the server's capabilities, I kept running into a
StaleElementReferenceException
. It turns out that this is becauseby.model
doesn't work with Selendroid.An error should be provided if a locator is not supported.
To reproduce:
by.model(...)
and then attempt to dosendKeys(...)
.The text was updated successfully, but these errors were encountered: