Sutune

静心成大器,稳定动乾坤

0%

环境依赖

  • Node.js
  • Appium
  • Appium-desktop
  • Appium-doctor
  • Appium-Python-Client
  • Python
  • JDK
  • Andriod SDK

以上所需的软件本套教程素材包都提供,可以在视频左下角【获取素材】去对应章节下载,找到Appium环境配置全家桶

阅读全文 »

Appium简介

Appium is an open source test automation framework for use with native, hybrid and mobile web apps.
It drives iOS, Android, and Windows apps using the WebDriver protocol.

Appium是一个开源测试自动化框架,可用于原生,混合和移动Web应用程序测试。
它使用WebDriver协议驱动iOS,Android和Windows应用程序。

阅读全文 »

元素定位方式

元素的定位应该是自动化测试的核心,要想操作一个元素,首先应该识别这个元素象。Selenium提供了一系列的对象定位方法,常用的有以下几种

  • id
  • name
  • class name
  • link text
  • partial link text
  • tag name
  • xpath
  • css selector
阅读全文 »

Win 环境

Firefox

  • 1.FireFox 48以上版本 : Selenium 3.X +FireFox驱动——geckodriver
  • 2.Firefox 48 以下版本: Selenium2.X 内置驱动
  • geckodriver下载地址 下载后放置在Python的根目录。

浏览器位数的版本和驱动版本要一致!
如果是32bit浏览器而Driver是64bit则会导致脚本运行失败!

1
driver = webdriver.Firefox()
阅读全文 »