Need help with cssify?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

santiycr
115 Stars 40 Forks MIT License 96 Commits 4 Opened issues

Description

XPATH to CSS translator

Services available

!
?

Need anything else?

Contributors list

# 18,463
Ruby
seleniu...
party-p...
.NET
91 commits
# 30,717
Rust
Django
Vue.js
yaml-pa...
1 commit

cssify

Get your XPATHs translated to css automatically! (don't go to crazy on what you want to translate, this script is smart but won't do your breakfast).

.. image:: https://travis-ci.org/santiycr/cssify.png?branch=master :alt: [Build Status] :target: https://travis-ci.org/santiycr/cssify

.. image:: https://saucelabs.com/buildstatus/cssify :alt: [Sauce Status] :target: https://saucelabs.com/u/cssify

Usage

New! Use cssify from a browser::

http://cssify.appspot.com

Install::

$ pip install cssify

From python::

$ pip install cssify

from cssify import cssify cssify('//a') 'a' cssify('//a[@id="bleh"]') 'a#bleh'

From the console::

$ ./cssify.py '//a' a $ ./cssify.py '//a[@id="bleh"]' a#bleh

Testing and contributing

Supported and unsupported cases are documented by tests. If you have a request or a contribution for new conversions, include a test that proves the issue and solution and send a pull request.

To run all unit tests locally::

$ nosetests tests/test_cssify.py

To run all Selenium tests locally (some env variables are necessary)::

$ nosetests tests/testcssifyweb.py

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.