Page 1 of 1

Web Driver Actions

Posted: Wed Aug 09, 2017 2:33 pm
by aidan.mcdonnel
Hey all

Just doing a POC on Ranorex and I'm wanted to know if its possible to use something like
public void clickandDrag(IWebElement location)
        {
            Actions builder = new Actions(Driver);
            try
            {
                builder.DragAndDrop(ReferenceElement, location).Build().Perform();
            }
            catch (Exception w)
            {
            }

            builder = null;

        }
Ranorex version :7.1.0

Thanks

Aidan

Re: Web Driver Actions

Posted: Fri Aug 11, 2017 11:00 am
by SteveBeck
try Using openqa.selenium.interactions

If you cant reach interactions then no. I noticed that the Ranorex Implementation of Selenium is missing functionality. You can bring all of this back by using Nuget to implement your own Selenium Framework, but you will have to using an External Alias for those libraries as they share the namespace with the Ranorex webdriver plugin.

Re: Web Driver Actions

Posted: Fri Aug 11, 2017 11:45 am
by aidan.mcdonnel
Thanks for the response Steve

I think my main problem is getting the active Driver :)

Aidan