mardi 24 mai 2016

How can I write given code in a robust way?

WebElement doneEditingLink browser.driver.findElement(By.id("addNewQuestionTable"))
                                                    .findElements(By.tagName("a"))
                                                   .get(3);
                                                   .get(12);

This code is fragile. How can I write this same functionality in a better robust way?

Aucun commentaire:

Enregistrer un commentaire