摘要: This chapter is a tutorial introduction to page objects design pattern. A page object represents an area in the web application user interface that yo 阅读全文
posted @ 2016-08-10 16:02 漂浮的心 阅读(165) 评论(0) 推荐(0) 编辑
摘要: These days most of the web apps are using AJAX techniques. When a page is loaded to browser, the elements within that page may load at different time 阅读全文
posted @ 2016-08-10 16:02 漂浮的心 阅读(151) 评论(0) 推荐(0) 编辑
摘要: There are various strategies to locate elements in a page. You can use the most appropriate one for your case. Selenium provides the following methods 阅读全文
posted @ 2016-08-10 16:02 漂浮的心 阅读(116) 评论(0) 推荐(0) 编辑
摘要: The first thing you’ll want to do with WebDriver is navigate to a link. The normal way to do this is by calling get method: driver.get("http://www.goo 阅读全文
posted @ 2016-08-10 16:01 漂浮的心 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 1.1. Introduction Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. Through Selenium Pytho 阅读全文
posted @ 2016-08-10 16:00 漂浮的心 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 2.1. Simple Usage If you have installed Selenium Python bindings, you can start using it from Python like this. from selenium import webdriver from se 阅读全文
posted @ 2016-08-10 16:00 漂浮的心 阅读(122) 评论(0) 推荐(0) 编辑
摘要: http://selenium-python.readthedocs.io/index.html 1. Installation 1.1. Introduction 1.2. Downloading Python bindings for Selenium 1.3. Detailed instruc 阅读全文
posted @ 2016-08-10 15:51 漂浮的心 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Here is the detail introduction: https://packaging.python.org/distributing/ Basicly, to create a python package, you just need to do the following ste 阅读全文
posted @ 2016-08-04 14:11 漂浮的心 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 常规篇: 首先,用ps查看进程,方法如下: $ ps -ef …… smx 1822 1 0 11:38 ? 00:00:49 gnome-terminal smx 1823 1822 0 11:38 ? 00:00:00 gnome-pty-helper smx 1824 1822 0 11:38 阅读全文
posted @ 2016-07-26 16:21 漂浮的心 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 1. Write a Monitor.sh file as below 2. Create a cron job 3. Start and Check the cron status 阅读全文
posted @ 2016-07-26 15:18 漂浮的心 阅读(150) 评论(0) 推荐(0) 编辑