Web Driver Actions

Class library usage, coding and language questions.
aidan.mcdonnel
Posts: 8
Joined: Wed Aug 09, 2017 2:11 pm

Web Driver Actions

Post by aidan.mcdonnel » Wed Aug 09, 2017 2:33 pm

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

SteveBeck
Posts: 19
Joined: Thu Jul 27, 2017 8:27 am

Re: Web Driver Actions

Post by SteveBeck » Fri Aug 11, 2017 11:00 am

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.

aidan.mcdonnel
Posts: 8
Joined: Wed Aug 09, 2017 2:11 pm

Re: Web Driver Actions

Post by aidan.mcdonnel » Fri Aug 11, 2017 11:45 am

Thanks for the response Steve

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

Aidan