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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The WebDriver Java API is primarily the methods of
WebDriverandWebElement. 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.