News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Codeception Blog:
The Locator Class
September 27, 2012 @ 09:50:34

The Codeception blog (a BDD testing tool) has a new post on using their Locator class to create more complex tests based on XPath or CSS selectors.

In the latest Codeception 1.1.4 new Locator class was introduced. Basically it should simplify your life in writing complex XPath or CSS locators. Right now it has minimal, yet useful functionality.

The post shows how to combine more than one item for location with either a tag, CSS-based or XPath-based selector. It also shows how to use the "tabindex" method to simulate the movement through a page using the "Tab" key. Finally, there's a quick piece of code showing how to locate an item based on the "href" value. For more information on using Codeception, check out their documentation or the project's main site.

0 comments voice your opinion now!
locator class css xpath combine tab href


blog comments powered by Disqus

Similar Posts

PHP -GTK Community Site: A New Trio of Posts (phpISO, a PHP-GTK book, and Dev Inspector)

DevShed: Building a Modular Exception Class in PHP 5

PHP-Coding-Practices.com: How To Generate Monochromatic CSS Stylesheets Within Seconds Using PHP

Jakob Westhoff's Blog: Class dependency graph generation

Reddit.com: Dependency injection in ZF2 and Symfony 2 are service locators


Community Events

Don't see your event here?
Let us know!


series laravel5 list voicesoftheelephpant version interview api opinion introduction php7 framework laravel example release extension library community language podcast security

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework