2

I'm trying to implement a java program that will execute simple selenese commands with a local webdriver.

is there an API that gets a string such as "clickAndWait" and executes it? The WebDriverCommandProcessor class doesn't seem to do the trick.

6
  • What have you tried so far? Have you already seen this?: code.google.com/p/selenium/wiki/GettingStarted Commented Jan 29, 2013 at 7:46
  • sure, the documentation doens't describe the API much more than the so-brief javadoc Commented Jan 29, 2013 at 7:52
  • Actually, I always find more Java examples then PHP examples... :) seleniumhq.org/docs/04_webdriver_advanced.jsp for waiting for elements to appear (after clicking in your case) Commented Jan 29, 2013 at 7:56
  • What exactly are you trying to do? Commented Jan 29, 2013 at 9:45
  • exactly what I said, I'm trying to write a program that will execute selenese scripts Commented Jan 29, 2013 at 11:32

1 Answer 1

1

The WebDriver Java API is primarily the methods of WebDriver and WebElement. There is no method that takes a command string and executes it. But the Java API is a wrapper around another protocol, which is string-based. Check out the WebDriver WebDriver Wire Protocol, which is what a WebDriver language binding (client) uses to communicate with a WebDriver browser-driver (server). The commands do not map directly to "selenese" (the client language of Selenium IDE), but you can build the actions up to make them so.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.