Enter a location and URL and the service creates a QR code that embeds the geographically location.
Mobile testing has come a long way since the days when testing mobile web applications was mostly manual and took days to complete. Selenium WebDriver is a browser automation tool that provides an elegant way of testing web applications. WebDriver makes it easy to write automated tests that ensure your site works correctly when viewed from an Android or iOS browser.
For those of you new to WebDriver, here are a few basics about how it helps you test your web application. WebDriver tests are end-to-end tests that exercise a web application just like a real user would. There is a comprehensive user guide on the Selenium site that covers the core APIs.
Now let’s talk about mobile! WebDriver provides a touch API that allows the test to interact with the web page through finger taps, flicks, finger scrolls, and long presses. It can rotate the display and provides a friendly API to interact with HTML5 features such as local storage, session storage and application cache. Mobile WebDrivers use the remote WebDriver server, following a client/server architecture. The client piece consists of the test code, while the server piece is the application that is installed on the device.
WebDriver for Android and iPhone can be installed following these instructions. Once you’ve done that, you will be ready to write tests. Let’s start with a basic example using www.google.com to give you a taste of what’s possible.
The test below opens www.google.com on Android and issues a query for “weather in san francisco”. The test will verify that Google returns search results and that the first result returned is giving the weather in San Francisco.
Next, let’s rotate the screen and ensure that the image displayed on screen is resized.
Let’s take a look at the local storage on the device, and ensure that the web application has set some key/value pairs.
What if your test reveals a bug? You can easily take a screenshot for help in future debugging:
WebDriver has two main components: the server and the tests themselves. The server is an application that runs on the phone, tablet, emulator, or simulator and listens for incoming requests. It runs the tests against a WebView (the rendering component of mobile Android and iOS) configured like the browsers. Your tests run on the client side, and can be written in any languages supported by WebDriver, including Java and Python. The WebDriver tests communicate with the server by sending RESTful JSON requests over HTTP. The tests and server pieces don’t have to be on the same physical machine, although they can be. For Android you can also run the tests using the Android test framework instead of the remote WebDriver server.
Since Nyagoslav of Optilocal first spotted the grey pinned local results a week ago, there have been a number of other sitings of the change in the wild. There is still a fair bit of variability in the layout and arrangement indicating that Google has not yet picked a final design and they are still testing. The widespread sitings would tend to argue that ultimately the change to grey is likely.
Here are screen shots from Optilocal, LocalBusinessRockstar and LocalvisibilitySystem that capture some of the variety still presenting. Besides the grey pin, you will note that on some screen shots the pin has moved to the right. Most significant to me was the change of the Branded One Box. In moving the images to the right, Google is reducing the space given to a brand at the top of the page. We still need to see this result with SiteLinks to ascertain the full impact.