Page 1 of 1

upload file using Webdriver integration

Posted: Wed Jan 24, 2018 12:34 pm
by aidan.mcdonnel
Hey

I'm new to Ranorex so easy on me pls :)


Is it possible to recreate the following C#

Code: Select all

_driver = new RemoteWebDriver(new Uri(hub_url),options);
_driver.FileDetector = new LocalFileDetector();
FileWebElement= _driver.FindElement(By.ClassName("inputfile"));
FileWebElement.SendKeys(path);
UploadButton.Click();
Where the HTML is

Code: Select all

<input class="inputfile" type="file" name="file">
I tried to record but Ranorex records the system elements.

Any help is welcome