Good To Know

How to change browser settings in a Selenium test

Magium tests are designed to be as cross browser compatible as possible. For that reason the Remote WebDriver component is used in all circumstances. However, there might be some times when you need to test browser specific configurations. One example is setting the browser language. Each browser has different ways of doing it. So givenContinue Reading “How to change browser settings in a Selenium test”

checkout New Feature shipping

Validating Individual Shipping Methods

Out of the box Magium will select the first shipping method on the screen. But there might be some times when you need to validate a particular shipping method, or force an error to be thrown if a shipping method does not exist. ’tis now easy to do. use MagiumMagentoAbstractMagentoTestCase; class ShippingTest extends AbstractMagentoTestCase {Continue Reading “Validating Individual Shipping Methods”

assertions New Feature Performance

Asserting page load times in Magento with Magium

Validating SLAs (Service Level Agreements) is often part of executing browser tests. With Magium you can now include page timings as part of your test. Say, for example, that part of your SLA is that a page must be rendered in less than 5 seconds. This is done by using the TTFBLoadedLessThan, DOMPageLoadedLessThan or DOMContentLoadedLessThanContinue Reading “Asserting page load times in Magento with Magium”

New Feature

Validating that page assets are cached

It’s not just HTML elements that need to be tested, and sometimes not even testing that images or CSS files are being tested. Sometimes you need to test things like server configurations. Magium’s position is that there are a wealth of different areas where browser testing can benefit your organization. Validating browser testing configurations isContinue Reading “Validating that page assets are cached”


ChromeDriver hangs with Selenium Server and Xvfb

I have spent several hours working on an issue while running Selenium Server under Xvfb with ChromeDriver.  There would basically be a 30 second timeout when connecting to Selenium Server from WebDriver with this being the exception: 1) Tests\Magium\AbstractTestCase\CoreAssertionTest::testElementDisplayed Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {“desiredCapabilities”:{“browserName”:”chrome”,”platform”:”ANY”}} Operation timed out after 30001 milliseconds with 0Continue Reading “ChromeDriver hangs with Selenium Server and Xvfb”

authentication New Feature twitter

Browser Testing Twitter OAuth Accounts

I added a Twitter OAuth integration in @magiumlib so you can easily do authentication automation. — Kevin Schroeder (@kpschrade) April 6, 2016 This is a simple library to help browser tests perform OAuth logins to Twitter. To install composer require magium/twitter To use: use MagiumTwitterActionsAuthenticateTwitter; class TwitterTest extends MagiumAbstractTestCase { public function testLogin() {Continue Reading “Browser Testing Twitter OAuth Accounts”