All Projects → SeasideSt → Parasol

SeasideSt / Parasol

Licence: mit
Testing web apps in Smalltalk using Selenium WebDriver.

Programming Languages

420 projects


Parasol (full name “Beach Parasol”) is a Smalltalk framework to automate web browsers. It’s particularly useful to write automated tests for Seaside web applications. Its design and implementation are based on the Java Selenium WebDriver API.


Here’s a straightforward annotated example. This example uses Parasol to automate a search for “Pharo” on Wikipedia:

"Open a web browser on the English-language Wikipedia home page."
driver := BPRemoteWebDriver withCapabilities: BPChromeOptions new.
driver get: ''.

"Click on the search box and type in 'Pharo' followed by a press of the Return key."
(driver findElementByID: 'searchInput') click.
driver getKeyboard sendKeys: ('Pharo' , (String with: BPKeys return)).

"Get the text of the article's first paragraph and show it on the transcript."
Transcript show: ((driver findElementByID: 'mw-content-text') findElementByCSSSelector: 'p:not(.mw-empty-elt)') getText.

"Tell the browser to quit."
driver quit.

Check the Hands-On section below to learn how to run the example yourself.

Introduction Video

On YouTube you can find an introduction video about Beach Parasol. The video is a recording of a talk that was given at the ESUG 2013 conference. The slides of this talk are also available on SlideShare and as a PDF.


To try Beach Parasol, you'll need to get a few things:

We run automated tests for the supported platforms. If you find things are not working with more recent versions, please do file an issue.

You should extract the Chromedriver's ZIP file into the directory where you put the Selenium server JAR file. To run the Selenium server, execute the following on the command line:

java -jar selenium-server-standalone-3.141.59.jar

Warning: Parasol's default baseline will load the most recent master version of Seaside Seaside automatically. You can use Parasol without Seaside, but then you can only load the 'core' metacello group. The 'default' and 'tests' groups require Seaside. If you want to use a specific version of Seaside, you should load it yourself.

To load the Parasol package into the Pharo image that has Seaside loaded, or to load Seaside as a dependency:

Metacello new
    baseline: 'Parasol';
    repository: 'github://SeasideSt/Parasol/repository';
    load: 'tests'.
(Smalltalk at: #ZnZincServerAdaptor) startOn: 8080.

To load Parasol package into the Pharo image without loading Seaside:

Metacello new
    baseline: 'Parasol';
    repository: 'github://SeasideSt/Parasol/repository';
    load: 'core'.
(Smalltalk at: #ZnZincServerAdaptor) startOn: 8080.

Now give the Wikipedia example from above a try! For more examples, check the test cases BPRemoteWebDriverTestCase and BPWebElementTestCase.


If you need more documentation, you can check the documentation of Parasol’s Java counterpart. Most classes and methods in Parasol were designed to closely follow their Java counterpart, to make it easier to use its documentation and translate from Java-based examples. Good starting points are the documentation for the WebDriver and WebElement interfaces. They are the counterparts to BPRemoteWebDriver and BPWebElement.

The Seaside tutorial offered by the HPI Software Architecture Group has a chapter on “Testing Seaside Applications” using Parasol.

Supported Smalltalk Platforms

The main Smalltalk platform for Parasol is Pharo. Other supported Smalltalk platforms are GemStone and Squeak. There was support for VisualWorks in the past, but this has been removed due to lack of maintenance (see issue #8, let us know if you’re interested in VisualWorks support).

GitHub versus SS3 Repository

An older repository for Parasol exists on SqueakSource3. This GitHub repository is the current development repository, the older SqueakSource3 repository is no longer kept up-to-date.

Build Status master branch:

Parasol’s self-tests are automatically ran on Travis CI, the image above shows the status of the latest build of the “master” branch. Please note there's an open issue regarding some of the self-tests failing randomly (issue #2).


You might also be interested in:

  • AutomaticParasol: for running SeleniumIDE-Generated Tests in Pharo Smalltalk (using Parasol).
  • WebDriver: alternative Pharo WebDriver package described as “based on Parasol but clean room and for Pharo only.”
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].