Skip to content

PHP formatter for Selenium IDE with WebDriver support (aka Selenium2)

Notifications You must be signed in to change notification settings

ohvitorino/php-formatter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

README

PHP formatter for Selenium IDE with WebDriver support (aka Selenium 2).
It's still on development, but it seems to be working fine. I'm writing this
formatter because I wanted to do headless testing with phantomjs, which does not
support the old RC version.

If you get a "The command 'keys' is not existent or not supported yet" message,
replace any call to keys() with value().

This is a fork of @jbmartinez which is a fork of Adam Goucher's PHP Formatter for Selenium IDE.
Example build scripts via Adam Goucher : http://adam.goucher.ca/?p=1331

--------------------------------------------------

BUILD.SH

#!/bin/bash

APP_NAME=php-formatter      # short-name, jar and xpi files name. Must be lowercase with no spaces
CHROME_PROVIDERS="content"  # which chrome providers we have (space-separated list)
ROOT_DIRS="defaults"        # ...and these directories       (space separated list)

ROOT_DIR=`pwd`
TMP_DIR=build

# remove any left-over files from previous build
rm -f $APP_NAME.jar $APP_NAME.xpi
rm -rf $TMP_DIR

mkdir -p $TMP_DIR/chrome/content

cp -v -R src/content $TMP_DIR/chrome
cp -v src/install.rdf $TMP_DIR
cp -v src/chrome.manifest $TMP_DIR

# generate the XPI file
cd $TMP_DIR
echo "Generating $APP_NAME.xpi..."
zip -r ../$APP_NAME.xpi *

cd "$ROOT_DIR"

rm -rf $TMP_DIR

About

PHP formatter for Selenium IDE with WebDriver support (aka Selenium2)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.3%
  • Shell 2.7%