#11 楼 @lifreshman 用了你的方法成功安装,使用过程中也没有出现问题,Thanks。
先卸载之前安装的 Selenium,再安装 Appium-Python-Client,安装 Appium-Python-Client 时会自动安装 Selenium
更新一下吧,还有那些没有认领?
Swipe from one point to another point, for an optional duration.
:Args:
- start_x - x-coordinate at which to start
- start_y - y-coordinate at which to end
- end_x - x-coordinate at which to stop
- end_y - y-coordinate at which to stop
- duration - (optional) time to take the swipe, in ms.
:Usage:
driver.swipe(100, 100, 100, 400)
出错信息是?
增加 'appWaitActivity'
善用搜索。
致过去,态度决定一切。
一个是 Selnium 的包,一个是 Appium 的包,实际上都是封装了 Webdriver,后者添加了一些额外功能,Appium 从 1.0 开始使用 From appium import webdriver
已听,主持的不错
已经更新外部链接了
#2 楼 @seveniruby 好的
#41 楼 @cosmoliu2010 收邮件
我帮你搜索了一个帖子,看看能否帮得上你的忙? http://testerhome.com/topics/242
你自己有没有尝试先去搜索一下?
换成 full class name,果然 OK 了
官方文档,示例更新还没跟上
映射全列表
map.put("abslist", "AbsListView");
map.put("absseek", "AbsSeekBar");
map.put("absspinner", "AbsSpinner");
map.put("absolute", "AbsoluteLayout");
map.put("adapterview", "AdapterView");
map.put("adapterviewanimator", "AdapterViewAnimator");
map.put("adapterviewflipper", "AdapterViewFlipper");
map.put("analogclock", "AnalogClock");
map.put("appwidgethost", "AppWidgetHostView");
map.put("autocomplete", "AutoCompleteTextView");
map.put("button", "Button");
map.put("breadcrumbs", "FragmentBreadCrumbs");
map.put("calendar", "CalendarView");
map.put("checkbox", "CheckBox");
map.put("checked", "CheckedTextView");
map.put("chronometer", "Chronometer");
map.put("compound", "CompoundButton");
map.put("datepicker", "DatePicker");
map.put("dialerfilter", "DialerFilter");
map.put("digitalclock", "DigitalClock");
map.put("drawer", "SlidingDrawer");
map.put("expandable", "ExpandableListView");
map.put("extract", "ExtractEditText");
map.put("fragmenttabhost", "FragmentTabHost");
map.put("frame", "FrameLayout");
map.put("gallery", "Gallery");
map.put("gesture", "GestureOverlayView");
map.put("glsurface", "GLSurfaceView");
map.put("grid", "GridView");
map.put("gridlayout", "GridLayout");
map.put("horizontal", "HorizontalScrollView");
map.put("image", "ImageView");
map.put("imagebutton", "ImageButton");
map.put("imageswitcher", "ImageSwitcher");
map.put("keyboard", "KeyboardView");
map.put("linear", "LinearLayout");
map.put("list", "ListView");
map.put("media", "MediaController");
map.put("mediaroutebutton", "MediaRouteButton");
map.put("multiautocomplete", "MultiAutoCompleteTextView");
map.put("numberpicker", "NumberPicker");
map.put("pagetabstrip", "PageTabStrip");
map.put("pagetitlestrip", "PageTitleStrip");
map.put("progress", "ProgressBar");
map.put("quickcontactbadge", "QuickContactBadge");
map.put("radio", "RadioButton");
map.put("radiogroup", "RadioGroup");
map.put("rating", "RatingBar");
map.put("relative", "RelativeLayout");
map.put("row", "TableRow");
map.put("rssurface", "RSSurfaceView");
map.put("rstexture", "RSTextureView");
map.put("scroll", "ScrollView");
map.put("search", "SearchView");
map.put("seek", "SeekBar");
map.put("space", "Space");
map.put("spinner", "Spinner");
map.put("stack", "StackView");
map.put("surface", "SurfaceView");
map.put("switch", "Switch");
map.put("tabhost", "TabHost");
map.put("tabwidget", "TabWidget");
map.put("table", "TableLayout");
map.put("text", "TextView");
map.put("textclock", "TextClock");
map.put("textswitcher", "TextSwitcher");
map.put("texture", "TextureView");
map.put("textfield", "EditText");
map.put("timepicker", "TimePicker");
map.put("toggle", "ToggleButton");
map.put("twolinelistitem", "TwoLineListItem");
map.put("video", "VideoView");
map.put("viewanimator", "ViewAnimator");
map.put("viewflipper", "ViewFlipper");
map.put("viewgroup", "ViewGroup");
map.put("viewpager", "ViewPager");
map.put("viewstub", "ViewStub");
map.put("viewswitcher", "ViewSwitcher");
map.put("web", "android.webkit.WebView");
map.put("window", "FrameLayout");
map.put("zoom", "ZoomButton");
map.put("zoomcontrols", "ZoomControls");
你的 Appium 版本是?如果是 1.0,就改为 Class_Name,如果是 1.0 以下版本,是因为 Appium 做了映射 map.put("textfield", "EditText");
我试了一下,全都为空,你 Appium 版本是?
现在 Sample-Code 里还是 app-package 和 app-activity
具体错误信息,点击后最好等待一段时间,再去获取