Comments (5)
I have a form which has persisted data that I'd like to change.
Enter text appended the new text to the end of the existing text. So either
enter
text should clear the exiting text first, or I need to be able to call a method
to
clear the text.
/**
* To clear the value of an edit text
*/
public void clearEditText(int index)
{
final EditText editText = getCurrentEditTexts().get(index);
getCurrentActivity().runOnUiThread(new Runnable()
{
public void run()
{
editText.setText("");
}
});
}
Original comment by [email protected]
on 16 Apr 2010 at 2:19
- Added labels: ****
- Removed labels: ****
from robotium.
/**
* For when some long running process is working, in order to determine when it
is done
*/
public void waitForText(String text)
throws RuntimeException
{
waitForText(text, DEFAULT_TIMEOUT_MILLIS);
}
public void waitForText(String text, long millis)
throws RuntimeException
{
long now = System.currentTimeMillis();
final long timeout = now + millis;
while (!(searchText(text) && searchEditText(text)) && now < timeout)
{
now = System.currentTimeMillis();
}
now = System.currentTimeMillis();
if (now > timeout)
{
throw new RuntimeException(format("failed to find text '%s' within
required time %sm", text, millis));
}
return;
}
Original comment by [email protected]
on 16 Apr 2010 at 2:19
- Added labels: ****
- Removed labels: ****
from robotium.
Thanks for contributing. This will be included into the next release.
Original comment by [email protected]
on 19 Apr 2010 at 6:29
- Changed state: Accepted
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from robotium.
Will be included in the next release.
Original comment by [email protected]
on 29 Apr 2010 at 9:20
- Changed state: Started
- Added labels: ****
- Removed labels: ****
from robotium.
Original comment by [email protected]
on 10 May 2010 at 3:52
- Changed state: Verified
- Added labels: ****
- Removed labels: ****
from robotium.
Related Issues (20)
- hope to get a string array in the string.xml HOT 1
- PackageInstallerActivity can't be recognized HOT 1
- Code coverage for Robotium tests with Emma HOT 1
- problem with TabHost HOT 1
- getText() no longer finding View.GONE TextViews HOT 4
- How to verify the text, buttons displayed in Dialogs or alerts HOT 1
- Dialog cannot be scrolled. HOT 7
- NullPointerException when invoke solo.setActivityOrientation(Solo.LANDSCAPE) as soon as application is launched. HOT 4
- Click a listview member which cannot display in first screen,nothing is done. HOT 3
- Solo.searchFor finds items which do not exist in current activity HOT 3
- Apis "isCheckBoxChecked" and "isTextChecked" not working in the multi select screen of contacts. HOT 3
- Andriod emulator loses network connection during automation run HOT 2
- solo.searchButton(String text, boolean onlyVisible) is not working properly. HOT 11
- searchButton(Any instance) is not working properly HOT 3
- Not able to search/click on any item after moving to other tab. HOT 8
- SearchText() could not work if the list was already reached its bottom HOT 6
- Add option to disable catch-all ActivityMonitor HOT 6
- I am getting one crash after calling any robotium api after launching my activity HOT 4
- I am getting one crash after calling any robotium api after launching my activity HOT 1
- solo.isCheckBoxChecked(String) always returns false HOT 4
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 robotium.