Hi Nicolas,

you can also checkout:

  http://smalltalkhub.com/#!/~TorstenBergmann/WebDriver

This implements the JsonWireProtocol so it is not necessary to install 
Java/Selenium and is
(hopefully) a cleaner implementation together with tests. Pharo only.

Simple How to:
==============
 - The project is currently written and working for Windows platform (but will 
be 
   platform independent later)

 - run 

     Metacello new
         configuration: 'WebDriver';
         smalltalkhubUser: 'TorstenBergmann' project: 'WebDriver'; 
         load.

   to load the project and all dependencies

 - Download ChromeDriver.exe and put it into the image directory
   https://chromedriver.storage.googleapis.com/index.html?path=2.30/

   You can also set a different location in "WebDriver" -> "Settings" 

 - in the World menu choose "WebDriver" -> "ChromeDriver" -> "Run Chrome Driver"

 - open a playground and run

     wd := WDWebDriver new.
     wd url: 'http://www.pharo.org'.
     wd screenshotForm inspect

  which should open a chrome window.

It's not yet finished but if you like you can help completing it.

Bye
T.

Reply via email to