3

Is it possible to use Selenium web driver with Delphi ?

for example can I write this C# code in Delphi :

IWebDriver driver = new ChromeDriver();    
driver.Navigate().GoToUrl("http://example.com");
driver.FindElement(By.Id("username")).SendKeys("xxxx");
driver.FindElement(By.Id("password")).SendKeys("zzzz");
driver.FindElement(By.Id("submit")).Click();

1 Answer 1

2

To the best of my knowledge, nobody has released client bindings for Delphi so far. There have been discussions about that a couple of years ago, however.

To be able to write WebDriver tests in Delphi, there would be to possible options:

  1. Use the existing Java/.NET bindings and call them from Delphi using a wrapper technology, or
  2. implementing a REST-client for the WebDriver JSON/Wire Protocol in Delphi.

Option (2) sounds favorable, and given that there are tutorials like this one out there this shouldn't be too hard to accomplish.

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.