Comments (10)
Can you try the same action/assert without the ViewPager (just to eliminate
that factor). If it still doesn't work, it could me something with the IME.
Original comment by [email protected]
on 16 Dec 2013 at 6:20
from android-test-kit.
Does it work when you manually type text into the EditText field?
If so, could you please attach a logcat from the test run?
adb logcat -c
run test
adb logcat > log.txt
Original comment by [email protected]
on 18 Dec 2013 at 10:29
from android-test-kit.
Here you go.
I see it clicking on the input, the cursor shows up, but nothing happens.
Test case is very simple:
public void testCompanySearch() throws InterruptedException {
//type the search criteria
onView(withId(R.id.titleInput)).perform(ViewActions.click());
onView(withId(R.id.titleInput)).perform(ViewActions.typeText("Glassdoor"));
onView(withId(R.id.titleInput)).check(matches(withText("Glassdoor")));
}
If I change it to this, it works:
public void testCompanySearch() throws InterruptedException {
//type the search criteria
final TextView titleInput =
(TextView)getActivity().findViewById(R.id.titleInput);
getInstrumentation().runOnMainSync(new Runnable() {
public void run() {
titleInput.setText("Glassdoor");
}
});
onView(withId(R.id.titleInput)).check(matches(withText("Glassdoor")));
}
Original comment by [email protected]
on 19 Dec 2013 at 8:05
from android-test-kit.
Any developments on this?
Original comment by [email protected]
on 3 Jan 2014 at 8:51
from android-test-kit.
OK, some new developments from my side. I did some more testing across a bunch
of different devices and found that this test actually works, but only on
Samsung.
Works on the Samsung S4 (GD-I9505G) and Samsung S4 Mini (GT-I9190) running OS
4.2.2.
It doesn't work on a Nexus 4 phone (running OS 4.2.1)
It doesn't work on my HTC One (running 4.4)
It doesn't work on any emulator. (For emulators, we've tried everything from
different OS versions to Intel vs ARM emulation, to checking/unchecking the
hardware keyboard present and various screen size configuration).
I'm really at a loss why it would be working on Samsungs only. The samsungs are
wifi-only and not on data plan, just like our Nexus 4 testing device. It's
gotta be something related to the device, but I can't figure out what.
Original comment by [email protected]
on 4 Jan 2014 at 12:43
from android-test-kit.
Looks like I figured out the issue with the emulators.
Had to go to Settings -> Language & Input -> switch the Default Input to Sample
Soft Keyboard. It works now.
Original comment by [email protected]
on 4 Jan 2014 at 12:58
from android-test-kit.
And fixed the last two phones by installing a software keyboard from the Play
store and switching to them. It appears that the native keyboards of HTC One
and Nexus 4 do not work.
Original comment by [email protected]
on 4 Jan 2014 at 1:17
from android-test-kit.
Looks like you figured out the issue.
Original comment by [email protected]
on 9 Jan 2014 at 7:29
- Changed state: WontFix
from android-test-kit.
I'm seeing this issue too. "Install a different keyboard" doesn't really seem
like a fix?
Original comment by [email protected]
on 30 Sep 2014 at 3:10
from android-test-kit.
This definitely seems like a bug. Calabash is able to type into those text
fields, and I'm having a problem where it can write in some EditTexts but not
others.
Original comment by [email protected]
on 5 Dec 2014 at 8:54
from android-test-kit.
Related Issues (20)
- Performing click on fullscreen does not work (Fullscreen Activity Code Template) HOT 4
- Test failing on Lollipop when performing a click on a view whose parent layout has an indeterminate progress bar HOT 2
- Prebuilt binaries provide/use inconsistent versions of Dagger HOT 3
- getting "Espresso ViewAssertion Failed Looped for 3528 iterations over 60 SECONDS. The following Idle Conditions failed ." error HOT 1
- openActionBarOverflowOrOptionsMenu does not work with non-english locale & proguard used HOT 1
- Unable to run espresso tests - ComponentInfo not found for android.support.test.runner.AndroidJUnitRunner HOT 2
- AndroidJUnitRunner now marking failures where before it had not HOT 1
- DrawerActions is (still) leaking the parent listener HOT 3
- Context not initialized with ProviderTestCase2 (NullPointerException) HOT 1
- Basic intent test fails. HOT 1
- Using recyclerview-v7:22.1.1 causes NPEs with espresso-contrib 2.1 because it depends on recyclerview-v7:22.0.0 HOT 1
- Using onData with an overlaid View won't properly click on items
- Getting DexException when running assembleDebugAndroidTest goal second time HOT 4
- Enhancement: FlakyTest for JUnit4/Espresso HOT 2
- MonitoringInstrumentation leaking activity instances through ExecutorService HOT 3
- withText doesn't find views with textAllCaps attribute used HOT 1
- using onData in RecyclerView HOT 4
- Espresso-contrib cannot inflate RecyclerView with IllegalStateException (Unable to find LayoutManager) HOT 5
- Provide API to list tests that will be run
- Add API for adding RunListeners to AndroidJUnitRunner
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 android-test-kit.