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.
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.
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.