Some enters
This commit is contained in:
@@ -12,6 +12,7 @@ public class DragAndDropTest extends BaseTest {
|
|||||||
public void testApp() throws InterruptedException {
|
public void testApp() throws InterruptedException {
|
||||||
|
|
||||||
driver.navigate().to("https://the-internet.herokuapp.com/drag_and_drop");
|
driver.navigate().to("https://the-internet.herokuapp.com/drag_and_drop");
|
||||||
|
|
||||||
Thread.sleep(2000);
|
Thread.sleep(2000);
|
||||||
|
|
||||||
// Localizar los dos elementos con sus IDs reales
|
// Localizar los dos elementos con sus IDs reales
|
||||||
@@ -25,6 +26,7 @@ public class DragAndDropTest extends BaseTest {
|
|||||||
// Arrastrar A sobre B (intercambiar posiciones)
|
// Arrastrar A sobre B (intercambiar posiciones)
|
||||||
Actions dragAndDrop = new Actions(driver);
|
Actions dragAndDrop = new Actions(driver);
|
||||||
dragAndDrop.dragAndDrop(columnA, columnB).perform();
|
dragAndDrop.dragAndDrop(columnA, columnB).perform();
|
||||||
|
|
||||||
Thread.sleep(2000);
|
Thread.sleep(2000);
|
||||||
|
|
||||||
// Verificar que han intercambiado: ahora A está donde estaba B y viceversa
|
// Verificar que han intercambiado: ahora A está donde estaba B y viceversa
|
||||||
|
|||||||
Reference in New Issue
Block a user