Skip to content
Snippets Groups Projects
Commit 5f96864d authored by srosse's avatar srosse
Browse files

no-jira: tweaks to selenium tests

parent 1d6fe140
No related branches found
No related tags found
No related merge requests found
...@@ -233,9 +233,9 @@ public class LoginPage { ...@@ -233,9 +233,9 @@ public class LoginPage {
public LoginPage resume() { public LoginPage resume() {
List<WebElement> resumes = browser.findElements(resumeButton); List<WebElement> resumes = browser.findElements(resumeButton);
if(resumes.size() > 0 && resumes.get(0).isDisplayed()) { if(resumes.size() > 0 && resumes.get(0).isDisplayed()) {
WebElement resume = resumes.get(0); resumes.get(0).click();
resume.click();
OOGraphene.waitBusy(browser); OOGraphene.waitBusy(browser);
OOGraphene.waitModalDialogDisappears(browser);
} }
return this; return this;
} }
......
...@@ -51,7 +51,7 @@ public class MenuTreePageFragment { ...@@ -51,7 +51,7 @@ public class MenuTreePageFragment {
* @return The menu page fragment * @return The menu page fragment
*/ */
public MenuTreePageFragment selectRoot() { public MenuTreePageFragment selectRoot() {
By rootNodeBy = By.cssSelector("div.o_tree span.o_tree_link.o_tree_l0>a"); By rootNodeBy = By.xpath("//div[contains(@class,'o_tree')]//span[contains(@class,'o_tree_link')][contains(@class,'o_tree_l0')]/a");
OOGraphene.waitElement(rootNodeBy, browser); OOGraphene.waitElement(rootNodeBy, browser);
browser.findElement(rootNodeBy).click(); browser.findElement(rootNodeBy).click();
OOGraphene.waitBusy(browser); OOGraphene.waitBusy(browser);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment