Running Mobile Web Tests with Selenium WebDriver
Many of you have been interested in learning how to create a very simple Selenium /Appium script for the mobile web test since the Basics of Mobile Web Testing blog attracted a lot of attention. Here, I'll give you a quick tutorial on how to create a straightforward test for your website using actual hardware and browsers. Let's begin with the script that follows the example below. I will be using Python, If you don't already have Python installed and configured, get it done as we will be using it only. The imports must be completed first, followed by the creation of a simple function for log output. import os import sys import time from time import sleep from selenium import webdriver ## ## More help on writing tests: ## => http://selenium-python.readthedocs.org/latest/navigating.html ## def log(msg): print (time.strftime("%H:%M:%S") + ": " + msg) Establish the URL for device access as the first actual step. Use the following URL to access Bitbar Te...