Comments (15)
Going to work on it using pyphantomjs: https://github.com/ariya/phantomjs/blob/master/python/pyphantomjs.py
from splinter.
Or PySide! :)
from splinter.
Hello, are you currently working on this issue? Do you need some help to finish the issue? https://github.com/diegokogan and I may be able to help.
from splinter.
I'd appreciate your help a lot :)
Can you get QtWebKit working on a Mac OS?
I recently updated to Mac OS X Lion and Xcode 4 and didn't try again. I'm gonna try it later today :)
from splinter.
We look at this issue because we were looking for a headless browser to run our acceptance tests. We thought that using PhantomJS to implement a headless browser would be a good option.
Could you list which should be the behaviour to implement? We don't have much experience with the implementation of splinter.
from splinter.
Hi there, the process of create a new driver is pretty simple: you just need to implement a TestCase (extending tests.base. BaseBrowserTests
). e.g.: you can create test_phantomjs.py file, containing something like this:
from splinter.browser import Browser
from tests.base import BaseBrowserTests
class PhantomJSTest(BaseBrowserTests):
@classmethod
def setUpClass(cls):
cls.browser = Browser('phantomjs')
# ...
And then you add your driver to splinter.driver.phantomjs.PhantomJS
, e.g.:
from splinter.driver import DriverAPI, ElementAPI
class PhantomJS(DriverAPI):
pass
class PhantomJSElement(ElementAPI):
pass
All you have to do now is run the tests and implement the methods present on DriverAPI and ElementAPI classes. You can run the test with make
:
$ make test which=tests/test_phantomjs.py
It's a very "guide" on how to write a splinter driver, please keep in touch if you have any trouble.
from splinter.
Excellent information! Thanks a lot.
We will be updating this issue while we progress on the issue.
from splinter.
I'm on it too, It's nice to see it actually working! Right now I can visit a page and get it's title. There's too much work to be done!
from splinter.
Glad to read this :)
from splinter.
BTW, the test suite you guys did is awesome! Will help a lot.
from splinter.
I would love to see phantom.js supported.
from splinter.
I've stopped it. I was having some non-helpful errors while trying to test it.
The api would have to change too, cause phantomJs is all asynchronous, which made the work even more unpleasant.
There's a python project that uses QtWebkit too, just don't remember the name, maybe it would be a good one to use as part of the qtwebkit driver.
from splinter.
There's spynner: http://code.google.com/p/spynner/
from splinter.
thats the one I was trying to remember :) ty @fsouza
from splinter.
The right link for spynner, on github: https://github.com/makinacorpus/spynner
from splinter.
Related Issues (20)
- π From the Selenium project!
- attach_file work with flask? HOT 2
- Browser raise NoneType HOT 7
- CanΒ΄t find Iframe HOT 1
- Integration of undetected-chromedriver
- Changelog: Single file? HOT 3
- 'NoneType' object is not callable HOT 2
- We noticed regressions and inconsistencies after migrating from 0.18.1 to 0.19.0 HOT 9
- Cannot send characters directly to the browser HOT 2
- Config cannot be imported HOT 5
- Parallel script execution HOT 2
- Exception when using the latest Selenium HOT 3
- Existing profile is not loaded HOT 3
- selenium.WebDriver no longer accepts desired_capabilities as a kwarg HOT 1
- ValueError: I/O operation on closed file HOT 3
- More type annotations? HOT 1
- Constant error on startup HOT 2
- Launch the browser hidden HOT 1
- Testing and tox.ini environment improvements
- Splinter tests not failing when element not found on the page and wait_time set to 1 second HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from splinter.