Comments (4)
random.choice() doesn't accept set-type parameter.
Convert it to list type should solve this issue.
from droidbot.
Now with 866657a I have a new error Message: IndexError: list index out of range
hanno@dockerDroidBox:~/work/PycharmProjects/gsoc_droidbot$ python start.py -d emulator-5554 -a ~/mobileSamples/myApkTresor/0xA1EA512A.apk -env static -event static -o ~/mobileSamples/out/
Connecting to a device with serialno=emulator-5554 with a timeout of 60 secs...
Connected to device with serialno=emulator-5554
Actual device serialno=emulator-5554
INFO:TelnetConsole:telnet successfully initiated, the addr is (localhost:5554)
INFO:AppEnvManager:start deploying environment, policy is static
INFO:AppEnvManager:finish deploying environment, policy is static
INFO:AppEventManager:start sending events, policy is static
INFO:Device:sending event: {'y': 578.6571309256251, 'x': 7.700258676474885, 'event_type': 'touch'}
INFO:Device:sending event: {'y': 302.5150305392291, 'x': 269.4077683002539, 'event_type': 'touch'}
Traceback (most recent call last):
File "start.py", line 59, in <module>
main()
File "start.py", line 54, in main
droidbot.start()
File "/home/hanno/work/PycharmProjects/gsoc_droidbot/droidbot/droidbot.py", line 61, in start
event_manager.start()
File "/home/hanno/work/PycharmProjects/gsoc_droidbot/droidbot/app_event.py", line 599, in start
self.event_factory.start(self)
File "/home/hanno/work/PycharmProjects/gsoc_droidbot/droidbot/app_event.py", line 625, in start
event = self.generate_event()
File "/home/hanno/work/PycharmProjects/gsoc_droidbot/droidbot/app_event.py", line 690, in generate_event
event = IntentEvent(random.choice(list(self.possible_broadcasts)))
File "/usr/lib/python2.7/random.py", line 273, in choice
return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty
IndexError: list index out of range
from droidbot.
Added non-empty check before each random.choice().
from droidbot.
Thank You. That works fine with d19fb0f.
from droidbot.
Related Issues (20)
- Automate third-party sign-in functionality found in android apps HOT 2
- Quotation marks being inserted around username and password fields HOT 2
- How do I know what exactly Droidbot did to the phone at any given time? HOT 13
- Support for .XAPK
- Is there a way to stop Droidbot from generating the "Force Stop" operation HOT 2
- droidbot_ime is failing to write text which contains space HOT 4
- [Internship] Recruiting part-time interns to maintain this project. HOT 1
- “No such file or directory” error on Android 13 HOT 2
- Has TOLLER been integrated with DroidBot ? HOT 1
- DroidBot + ChatGPT for easier GUI automation
- Android versions supported by DroidBot HOT 6
- Error on Android 4.1 HOT 2
- Close automatically. HOT 1
- [Feature] Add support to Android 12L (API Level 32) HOT 1
- how to gather coverage while running droidbot? HOT 1
- Droidbot doesn't support Android API level >=32.
- Can't load tokenizer for 'bert-base-multilingual-cased'
- cv mode issue HOT 1
- ModuleNotFoundError: No module named 'start' HOT 2
- Can't run the code in Android 14 with API 34
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 droidbot.