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();
zac
  • 4,495
  • 15
  • 62
  • 127

1 Answers1

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.

Community
  • 1
  • 1
ralph.mayr
  • 1,320
  • 8
  • 12