Skip to content
Snippets Groups Projects
Commit 7ef19413 authored by srosse's avatar srosse
Browse files

no-jira: harden some selenium tests

parent 782a807a
No related branches found
No related tags found
No related merge requests found
...@@ -204,7 +204,7 @@ public class ForumPage { ...@@ -204,7 +204,7 @@ public class ForumPage {
public ForumPage replyToMessageNoWait(String reference, String title, String reply) { public ForumPage replyToMessageNoWait(String reference, String title, String reply) {
By replyBy = By.xpath("//div[contains(@class,'o_forum_message')][//h4[contains(text(),'" + reference + "')]]//a[contains(@class,'o_sel_forum_reply')]"); By replyBy = By.xpath("//div[contains(@class,'o_forum_message')][//h4[contains(text(),'" + reference + "')]]//a[contains(@class,'o_sel_forum_reply')]");
OOGraphene.waitElement(replyBy, browser); OOGraphene.waitElement(replyBy, browser);
browser.findElement(replyBy).click(); OOGraphene.click(replyBy, browser);
OOGraphene.waitBusy(browser); OOGraphene.waitBusy(browser);
OOGraphene.waitModalDialog(browser); OOGraphene.waitModalDialog(browser);
......
...@@ -211,7 +211,7 @@ public class UserAdminPage { ...@@ -211,7 +211,7 @@ public class UserAdminPage {
browser.findElement(usernameBy).sendKeys(username); browser.findElement(usernameBy).sendKeys(username);
By searchBy = By.cssSelector(".o_sel_user_search_form a.btn-default"); By searchBy = By.cssSelector(".o_sel_user_search_form a.btn-default");
browser.findElement(searchBy).click(); OOGraphene.click(searchBy, browser);
OOGraphene.waitBusy(browser); OOGraphene.waitBusy(browser);
return this; return this;
} }
......
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