Hello there!
I have a problem with Drag And Drop within Robot Framework test.
I am trying to drag and drop an element to a specific location or over a specific element but no luck so far.
I want to do it with:
- Drag And Drop By Offset xpath=//*[@id="elementSource"] 450 0
or simply with
- Drag And Drop xpath=//[@id="elementSource"] xpath=//[@id="elementDestination"]
I have also tried with
3. Assign Id To Element xpath=//[@id="elementDestination"] dropArea
3.1 Drag And Drop xpath=//[@id="elementSource"] target=dropArea
and
- Drag And Drop xpath=//[@id="elementSource"] xpath=//[@id="dropArea"]
where dropArea is ul element with id="dropArea"
elementSource is
.
When the test comes to this point elementSource is visibly selected by mouse hover/click but there is no horizontal drag performed. ElementSource should be placed to a placeholder (ul element) but it is not?? Another idea that I came up with was combination of Mouse Down, Mouse Over and Mouse Down but still no luck... Any solid suggestions?
Versions I use:
Windows 8.1
Robot Framework 2.9.2 (Python 2.7.10 on win32)
Firefox 42.0
Google Chrome Version 46.0.2490.86 m
Latest version of Selenium2Library
Hello there!
I have a problem with Drag And Drop within Robot Framework test.
I am trying to drag and drop an element to a specific location or over a specific element but no luck so far.
I want to do it with:
or simply with
I have also tried with
3. Assign Id To Element xpath=//[@id="elementDestination"] dropArea
3.1 Drag And Drop xpath=//[@id="elementSource"] target=dropArea
and
where dropArea is ul element with id="dropArea"
elementSource is
When the test comes to this point elementSource is visibly selected by mouse hover/click but there is no horizontal drag performed. ElementSource should be placed to a placeholder (ul element) but it is not?? Another idea that I came up with was combination of Mouse Down, Mouse Over and Mouse Down but still no luck... Any solid suggestions?
Versions I use:
Windows 8.1
Robot Framework 2.9.2 (Python 2.7.10 on win32)
Firefox 42.0
Google Chrome Version 46.0.2490.86 m
Latest version of Selenium2Library