GithubHelp home page GithubHelp logo

keitaoouchi / seleniumwrapper Goto Github PK

View Code? Open in Web Editor NEW
36.0 36.0 12.0 104 KB

selenium webdriver wrapper to make manipulation easier.

Home Page: http://pypi.python.org/pypi/seleniumwrapper

License: Other

Python 100.00%
selenium

seleniumwrapper's Introduction

Hello, πŸ‘‹

  • ζˆ‘ε«ε€§ε†…ζ…Άε€ͺ。Tokyo based software engineer focusing on web and mobile application.
  • To make the world a more peaceful place and make you smile, I write massive legacy code every day, ζœ¬ε½“γ«γ™γ„γΎγ›γ‚“ πŸ˜™

seleniumwrapper's People

Contributors

johtso avatar keitaoouchi avatar kseta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

seleniumwrapper's Issues

Suppress exceptions in silent mode

In silent mode, Selenium Wrapper returns None if Timeout Exception is thrown.

browser = seleniumwrapper.create('chrome')
browser.silent = true
assert browser.by_id('no_such_id_exists') == None

elem = browser.by_id('existing_id')
assert elem.by_class('no_such_class_exists') == None

browser type lacks DesiredCapabilities.PHANTOMJS

In [6]: br = selwrp.connect('PHANTOMJS', "http://127.0.0.1:3300" )
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-6-2e20fb90ae71> in <module>()
----> 1 br = selwrp.connect('PHANTOMJS', "http://127.0.0.1:3300" )

E:\_Coding\Py27\lib\site-packages\seleniumwrapper\wrapper.pyc in connect(drivern
ame, executor, custom_capabilities, **kwargs)
     64     else:
     65         msg = "drivername should be one of [IE, Opera, Chrome, Firefox](
case-insentive). given {0}".format(drivername)
---> 66         raise ValueError(msg)
     67
     68

ValueError: drivername should be one of [IE, Opera, Chrome, Firefox](case-insent
ive). given PHANTOMJS

Please add PHANTOMJS to supported type, it has some unique feature over other backend :

Q: Why do I get the error message phantomjs: cannot connect to X server?

A: In PhantomJS 1.4 or earlier, X server is still needed. The workaround is to use Xvfb. 
~~~Starting with PhantomJS 1.5, it is pure headless and there is no need to run X11/Xvfb anymore.~~~

.get_attribute shortcut

Do you think it might be nice to have a shortcut to the .get_attribute method, possibly .attr? Or maybe even using __getitem__?

some_element.attr('href')

PS. Thanks for making this! Those ridiculously long method names were driving me insane..

Safari support?

I see that there is no support for Safari (even using the old RC 1 Selenium API via Remote). Is there any way get this this support? I know that the SafariExtension itself is still highly experimental and a PITA to install.

Supporting jquery selector.

If current page already loaded jquery, seleniumwrapper should utilize it. It enables seleniumwrapper to find elements by JQuery selector.

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.