Nicolas, It is still nice to have a thing that helps with web pages testing and that does not requires external libraries in order to work (even if limited in abilities). We have got Soup etc, but I have also been using this: https://github.com/ericchiang/pup and it is super powerful for scraping data. If one could wrap or port or remix it with Soup in Pharo it would be super cool. (let's dream and we also get a jq wrapper and all of it in Scale... > students someone?) Phil On Tue, Jun 27, 2017 at 10:51 AM, Torsten Bergmann <astares@gmx.de> wrote:
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.