Skip to content

Implement Drag & Drop action builder #57

Open
attodorov opened this Issue Sep 17, 2012 · 9 comments

4 participants

@attodorov

The following Selenium code won't currently work in a ghostdriver setup:

        Actions builder = new Actions(driver);
       builder.ClickAndHold(col).MoveToElement(target).Release(target).Build().Perform();

as well as doing mousedown/mousemove/release on the target.

Thanks
Angel

@attodorov

According to the document specifying the status of the wire protocol implementation, is supposed to work, that's why i am submitting this as an issue. if you need more info i can prepare some sample project for you. but the setup is pretty basic - start ghost driver, then create a selenium test (.NET based ) which performs drag and drop on some elements.

I'll check it out with the Java Selenium so that i am sure it's not related to the .NET bindings.

Thanks,
Angel

@attodorov attodorov closed this Sep 17, 2012
@attodorov attodorov reopened this Sep 17, 2012
@detro
Owner
detro commented Oct 4, 2012

Please provide reproducible example.

I'm too swamped with this project to be able to spend time to reproduce issues that others have.
I want to investigate and fix, but after I can see it in front of me, without having to invest time in reproducing.

This is a small project, I'm the only main developer: try to understand that.

@detro
Owner
detro commented Oct 7, 2012

I can confirm that there is an issue here to address.

Thanks: I'll look into it.

@detro detro was assigned Oct 8, 2012
@loduis
loduis commented Feb 28, 2013

I think the reason for this problem is related to the method, page.sendEvent

http://code.google.com/p/phantomjs/issues/detail?id=1104&sort=-id

@loduis
loduis commented Feb 28, 2013

the problem is that viewportSize is very small, by default phatomjs use as page.vierportSize = {"height":300,"width":400}, Ideally ghostdriver the viewport size to be of: page.vierportSize = {"height":768,"width":1240}, this minimal for the web page

@detro
Owner
detro commented Mar 3, 2013
@loduis
loduis commented Mar 3, 2013

Yes, this work, in this moment I fixed my window size so:
@driver.manage.window.resize_to(1024, 768) on ruby
that is same efect, but the ideally is that ghostdriver, by default viewport size is
page.vierportSize = {"height":768,"width":1240},
or maybe get the dimensions of the screen and place it to viewport size

http://stackoverflow.com/questions/4154262/how-to-get-screen-resolution-in-ruby

@detro
Owner
detro commented Mar 4, 2013
@brizzbane

moved comment to

#192

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.