Selenium android driver】的更多相关文章

selenium android « s « Jar File Download http://www.java2s.com/Code/Jar/s/selenium-android.htm How to install the Android SDK on Windows, Mac and Linux https://www.androidcentral.com/installing-android-sdk-windows-mac-and-linux-tutorial…
Using the scrollTo(String text) and scrollToExact(String text) method of Android Driver. However the scrolling is done for the entire contact list first downwards and then upwards but it does not scroll upto the string text provided and in the end th…
HTML5 中引入了 Application Cache,这意味着 Web 应用程序可以被缓存到本地,且可在没有网络的情况下也能访问该 Web 应用程序 Application Cache 在以下3个方面具有明显优势 1.离线浏览:在没有网络情况下用户也可使用 Web 应用程序 2.速度快:缓存的资源被加载时速度很快 3.服务器负载小:浏览器只会从服务器更新有变化或新增的资源 确认 Web 应用程序是否使用了改缓存特性的最简单方式就是直接查看网页 HTML 代码,如果其源码中具有如下包括 man…
在 HTML5 中,Web Storage 这个新特性可让用户将数据存储在本地的浏览器中.在早期的浏览器中可通过 cookies 来完成这个任务,但 Web Storage 会更加安全和高效,且 Web Storage 通过键值对进行存储,只有自身的网页应用才可以访问存储的数据 Web Storage 分为以下2种类型 1. localStorage: 存储的数据永久不会过期 2. sessionStorage: 存储的数据只在当前会话中有效 通过 Chrome 的开发者工具在 Resource…
package com.learingselenium.android; import junit.framework.TestCase import org.openqa.selenium.Rotatable; import org.openqa.selenium.ScreenOrientation; import org.openqa.selenium.WebDriver; import org.openqa.selenium.android.AndroidDriver; import or…
本文总结了使用Selenium Web driver 做页面自动化测试的一些 tips, tricks, snippets. 1. Chrome Driver 如何安装 extensions 两种方式 a) Packed (.crx file) --  crx为Chrome的插件后缀名,FireFox的是xpi ChromeOptions options = new ChromeOptions(); options.addExtensions(new File("/path/to/extensi…
Test the android driver by JNI (Java Native Interface), In the third article, we know how to compiler the moduler for localhost, ok6410 and goldfish platform. http://www.cnblogs.com/plinx/p/3209500.html But we didn't try to test the driver using by C…
MTK Android Driver :camera 1.相关代码位置:mediatek\config\XXXX(红色字为具体的项目名) 文件:ProjectConfig.mk CUSTOM_KERNEL_IMGSENSOR = …… gc2235_raw CUSTOM_KERNEL_MAIN_IMGSENSOR = …… gc2235_raw CUSTOM_HAL_IMGSENSOR = …… gc2235_raw CUSTOM_HAL_MAIN_IMGSENSOR = …… gc2235_r…
MTK Android Driver :lcm 1.怎样新建一个LCD驱动 LCD模组主要包括LCD显示屏和驱动IC.比如LF040DNYB16a模组的驱动IC型号为NT35510.要在MTK6577平台上新建这个lcd的驱动,步骤如下: A. 新建文件夹nt35510: \mediatek\custom\common\kernel\lcm\ nt35510 \mediatek\custom\common\lk\lcm\ nt35510 //\mediatek\custom\common\ubo…
MTK Android Driver :Key 1.按键配置(根据原理图):DCT(Driver Customization Tool): ..\mediatek\custom\prj\kernel\dct\dct\codegen.dws ..\mediatek\source\dct\DrvGen.exe 客制化:按键定义表.de-bounce time .Power key Eint Gpio.DownLoadKey.|Mode Key.Factory Key.Recovery Key 2.f…
MTK Android Driver :battery电池曲线 1.配置文件位置: CUSTOM_KERNEL_BATTERY= battery mediatek\custom\\kernel\battery\battery\cust_battery.h mediatek\custom\\kernel\battery\battery\custom_fuel_gauge.h 2.充电常用参数修改: ..\mediatek\custom\\kernel\battery\battery\cust_ba…
在验证某些关键步骤时,需要截个图来记录一下当时的情况 Webdriver截图时,需要引入 import java.io.File; import java.io.IOException; import org.apache.commons.io.FileUtils; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; 截图方法 public static void snapshot(…
selenium获取input时候,发现type=”hidden” 的input无法修改value,经牛人指点,可以使用js修改 首先html源文件如下,设置为text .hidden.submit <html> <head> <title>this is a test </title> <script type="text/javascript"> function display_alert() { alert("…
首先为eclipse添加testng插件 步骤如下:help->Install New SoftWare... 2. 添加testng链接,该链接可以在这里找到 For the Eclipse plug-in, we suggest using the update site: Select Help / Software updates / Find and Install. Search for new features to install. New remote site. For Ec…
This essay, I go to a deeply studying to android HAL device driver program. According to the android architecture we disscus in last essay, when we are designing a android device driver, we should follow the steps below : (1) linux device driver In t…
From this essay, we go to a new discussion "Android Hardware Abstraction Layer". In this essay, we fisrt talk about the architecture of linux and android. 1.linux If you have got some brief reading about  <Linux Kernel Development> or <…
In this essay, I will write the JNI to test our leds device. If you don't know how to create a jni project, I suggest you to have a read on the following website : http://www.cnblogs.com/plinx/p/3213824.html 1.string.xml <?xml version="1.0" e…
In the past, we know how to create and run a simple character device driver on pc, goldfish and ok6410. These two essays I will talk about a led device real exists on ok6410. In this essay, we will compile a led device driver and test it. At first, I…
This article talk about how to test device driver on JNI. There are two ways to test the device driver : (1) Create methods to control devices in .c/.cpp file, the .java call the methods in .c/.cpp : This way is call JNI (Java Native Interface), mean…
This article discusses the Makefile and how to port the module to different platform (localhost and arm). 1.localhost My localhost system is debian wheezy. If you would like to set up the environment for user-mode, you can follow the website : http:/…
一.Display 1.lcm 相关概念1.1) MIPI接口:一共有三种接口:DBI(也做CPU或MCU接口).DPI(也叫RGB接口).DSI.在使用DSI接口时,目前75/77都只支持到2条data lane,加上一条clock lane.使用DPI接口时,根据LCM IC支持的情况,可以选择16bus.18bus传输RGB格式文件,在GPIO部分分为R.G.B分别对应 8个GPIO(GPIO20~46期间),客户采用DPI接口需要根据选择的bus方式进行配置,推荐RGB端口全部配置为对应…
原文网址:http://www.cnblogs.com/biglucky/p/4413797.html 一.Display 1.lcm 相关概念1.1) MIPI接口:一共有三种接口:DBI(也做CPU或MCU接口).DPI(也叫RGB接口).DSI.在使用DSI接口时,目前75/77都只支持到2条data lane,加上一条clock lane.使用DPI接口时,根据LCM IC支持的情况,可以选择16bus.18bus传输RGB格式文件,在GPIO部分分为R.G.B分别对应 8个GPIO(G…
1.CMD下载安装selenium pip install selenium 2.python运行: from selenium import webdriver browser = webdriver.Chrome() browser.get('http://www.baidu.com') 会提示出错:'chromedriver' executable needs to be in PATH 3.安装Chrome Driver:下载地址(注意:最下面不是最新的:安装版本需要和Google Ch…
Finally I got it. 没有自动化过edge,今天被小坑了一下,但是还好现在弄好了. 1. 查看edge 版本,我的是14.14393 2. https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ 下载edge driver.一定要下载support version的driver哦,否则你单独运行webdriver就会提示你这个版本不匹配. C:\Users\***\Downloads>Microso…
新换了电脑,重新配置下环境,备忘下 1.python2安装 https://www.python.org/downloads/release/python-2714/ 下载64位Windows x86-64 MSI installer双击安装 配置环境变量,将对应的目录添加path C:\Python27和C:\Python27\Scripts(pip的路径) 验证cmd输入python 2.selenium安装,使用pip安装 C:\Windows\system32>pip install s…
这里摘录一些处理所需要的jar包,以及对照关系等. 参考: selenium-chrome-driver-2.22.0.jar:http://www.java2s.com/Code/Jar/s/Downloadseleniumchromedriver2220jar.htm selenium-chrome-driver-2.0a4.jar:http://www.java2s.com/Code/Jar/s/Downloadseleniumchromedriver20a4jar.htm seleniu…
driver.quit()与driver.close()的不同:driver.quit(): Quit this driver, closing every associated windows;driver.close(): Close the current window, quiting the browser if it is the last window currently open. 翻译成中文: driver.close()     --  关闭当前窗口,如果是当前打开的最后一个…
In this essay, I will talk about how to write the service libraries. TIPS : I won't discuss the name rules about HAL libraries, but it's quite important to our understanding. You can check the source file : android_source/hardware/libhardware/hardwar…
This is a short essay about the mistakes in compiling ok6410 android-2.3 source codes. If there is nothing happen when you compiling forlinx android-2.3, just go past. My local host is 64bit system, but the forlinx android souce code was compiler on…
Install busybox for goldfish/phone 1. Download busybox source code http://www.busybox.net/ 2. Decompress busybox $ tar xvf busybox-1.21.0.tar.bz2 -C ~/Android/$ cd ~/Android/busybox-1.21.0 3. Correct the cross compiler $ vim Makefile // add the compi…