Code Monkey home page Code Monkey logo

Comments (3)

lucatume avatar lucatume commented on June 3, 2024 1

Well: many thanks to you: I had no idea there was an article like that and that made my day!
Test away!

from wp-browser.

lucatume avatar lucatume commented on June 3, 2024

Well, first of all: thanks.

First try: in your WPWebDriver configuration you are specifying a port:8080 but that port parameter is to specify the port phantomjs is listening on.
Try modifying the configuration to this:

WPWebDriver:
            url: 'http://0.0.0.0:8080'
            browser: phantomjs
            port: 4444
            restart: true
            wait: 2
            adminUsername: admin
            adminPassword: password
            adminUrl: '/wp-admin'

Where the 4444 port is the port phantomjs usually listens on; your configuration might differ though.
For future reference keep in mind that WPBrowser extends PHPBrowser and WPWebDriver extends WebDriver: when it comes to configuration and reference the base is the same.

Keep me posted.

from wp-browser.

unfulvio avatar unfulvio commented on June 3, 2024

awesome thank you!!!

sorry I didn't realize that the port should have been different I was assuming the webserver port not selenium listening port, no wonder it was getting a reply from webserver http and not selenium, the error output makes perfect sense now

this works beautifully even with wp cli server which is just the php own webserver

ps I found out about WP Browser here https://deliciousbrains.com/codeception-automate-wordpress-plugin-testing/ and I hope to include it in many projects!

from wp-browser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.