nose-devs/nose — Issue #476: No public version of findElement and findElements available in Python bindings
Author: jpellerin
Created: 2011-12-14 16:12:27+00:00
State: open

* What is the expected output? What do you see instead?

For the Python bindings, it would be nice to have find_element and find_elements methods that takes a "by" type as their first argument. This is currently implemented in the Java API. (See http://webdriver.googlecode.com/svn/javadoc/org/openqa/selenium/WebDriver.html#findElement%28org.openqa.selenium.By%29)

The Python bindings actually do have these methods, but they are semi-private due to their names, _find_element() and _find_elements(). They take strings (like "id" and "xpath") as the by argument.

It would be nice to expose these methods as part of the public Python API.

* What version of the product are you using? On what operating system?

selenium 2.0a5 module

* Please provide any additional information below.

In general, what is the policy for APIs in other languages? Are they expected to match the Java API? (This is probably a question better suited to the Selenium Developers forum.)

Anyway, I can submit a patch for this. I just want to make sure there are no objections from antlong or anyone.

Google Code Info:
Issue #: 374
Author: gregn...@gmail.com
Created On: 2010-11-18T18:04:21.000Z
Closed On: