Quality Testing

Quality is delighting customers

Whitsunday Islands


how to locate the element " Whitsunday Islands" ?
pls help

Views: 253

Reply to This

Replies to This Discussion

Whitsunday Islands

pls help urgent

Attachments:

driver.findElement(By.id("menuhiddendisplay2143"));

or

driver.findElement(By.xpath("//*[text='Whitsunday Islands']"));

driver.findElement(By.xpath("//*[@class='grn-eprt-btn greenwrap']")).click();
WebElement source = driver.findElement(By.xpath("//*[@class='modal-body dragbody']//*[@id='2143']"));
WebElement target = driver.findElement(By.xpath("//*[@class='modal-body dragbody']//*[@id='2144']"));

Actions builder = new Actions(driver);
Action dragAndDrop = builder.clickAndHold(source).moveToElement(target).release(target).build();
dragAndDrop.perform();
Action dragAndDrop1 = builder.clickAndHold(source).moveToElement(target).release(target).build();
dragAndDrop1.perform();

Thread.sleep(3000);

now drag and drop func works but in automation its not getting hold of it

its not getting attached in selenium :- DOM ISSUE WITH SELENIUM > HELP PLZ

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2021   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service