Re: [Dev] [DEV][Automation] - How to automate the Drag-Drop Action in Test-case Using selenium

2015-11-03 Thread Rajeenthini Satkunam
Hi All, I tried out what nipuna suggested.I have done small change Because using "nth child" is not good way to have in test java file.that 1) first we make all the element of class .ues-thumbnails will be draggable element 2) Then we point out the elements we need to move and the target which

Re: [Dev] [DEV][Automation] - How to automate the Drag-Drop Action in Test-case Using selenium

2015-11-02 Thread Nipuna Chandradasa
Hi Rajeenthini, I tried one of your references which uses jquery.simulate.js to test the jquery UI functionality. It worked. Only thing that it didnt work with out product is we only make the element draggable when the mouseenter event. I progamatically made it draggable. Then using jquery

Re: [Dev] [DEV][Automation] - How to automate the Drag-Drop Action in Test-case Using selenium

2015-11-02 Thread Rajeenthini Satkunam
Hi manu, I have tried with the modification done in my local checkout. 1) we have set timeout for ues thumbnails to make them drag-gable to drag and drop action. 2) we have called the javascript function { createComponent($("#a"), findStoreCache("gadget", "g1")); } to crate gadget using the

Re: [Dev] [DEV][Automation] - How to automate the Drag-Drop Action in Test-case Using selenium

2015-11-02 Thread Nipuna Chandradasa
HI manu, I didn't try the 1st alternative that Rajeenthini mentioned ( set timeout for ues thumbnails to make them drag-gable to drag and drop action). But i tried the 2nd alternative which making createComponent() and findStoreCache() methods public... and it worked. But isn't it good if we

Re: [Dev] [DEV][Automation] - How to automate the Drag-Drop Action in Test-case Using selenium

2015-11-02 Thread Rajeenthini Satkunam
Hi all, IMHO when we calling the Javascript method directly it does not mean actual drag and drop.So better we can try @nipuna suggestion as first making the elements draggable and try simulate function using jquery.simulate.js for drag and drop action,I have tried simulate earlier but I missed

Re: [Dev] [DEV][Automation] - How to automate the Drag-Drop Action in Test-case Using selenium

2015-11-02 Thread Manuranga Perera
I also noted the on mouseenter event drag-able issue and made a local change in Rajeenthini's checkout. Rajeenthini, were you able to test it with that change? On Mon, Nov 2, 2015 at 7:16 PM, Nipuna Chandradasa wrote: > Hi Rajeenthini, > > I tried one of your references which

Re: [Dev] [DEV][Automation] - How to automate the Drag-Drop Action in Test-case Using selenium

2015-10-21 Thread Rajeenthini Satkunam
Hi All, I have resolved the previous issue mentioned above through lasantha's solution which he was mentioned. @lasantha Thank you for your prompt reply. Even though I could not do this drag and drop Action successfully to selenium UI test case Java.I would like to share what kind of try I have

Re: [Dev] [DEV][Automation] - How to automate the Drag-Drop Action in Test-case Using selenium

2015-10-09 Thread Lasantha Samarakoon
Hi Rajeenthini, You are getting this exception because you can't cast the UESWebDriver into HasInputDevices interface. That is because unlike other drivers such as FirefoxDriver and ChromeDriver the UESWebDriver only implements the WebDriver interface. Therefore you need to implement the

[Dev] [DEV][Automation] - How to automate the Drag-Drop Action in Test-case Using selenium

2015-10-08 Thread Rajeenthini Satkunam
Hi All, I am currently working on writing UI test-cases using selenium for Dashboard Server(DS)/User Engagement Server.I have a test Case which needs to do a action that drag one element to a place and drop it in that place(drag and drop).So I have tried the below approach to do this task.

Re: [Dev] [DEV][Automation] - How to automate the Drag-Drop Action in Test-case Using selenium

2015-10-08 Thread Madusanka Premaratne
Hi Rajinthini, It seems like you have to change the test case. Did you record the test case using selenium plugin? The best approach is write is yourself in this kind of scenarios. You can refer to the links[1] and [2] to get an idea. [1] -