Skip to content
Permalink
Browse files
NO-JIRA Fix QueuesTest after ARTEMIS-3773
  • Loading branch information
brusdev authored and clebertsuconic committed May 11, 2022
1 parent 3a0658c commit 5c4d839d2d7dc55b308f05f9a87d2d6aa3d43f2b
Showing 1 changed file with 4 additions and 4 deletions.
@@ -30,9 +30,9 @@ public QueuesPage(WebDriver driver) {

public QueuePage getQueuePage(String name, int timeout) {
WebElement messagesCountWebElement = driver.findElement(getQueueLocator(name)).
findElements(By.tagName("td")).get(MESSAGES_COUNT_COLUMN);
findElement(By.xpath("td/span/a[contains(@onclick,'browseQueue')]"));

messagesCountWebElement.findElement(By.tagName("a")).click();
messagesCountWebElement.click();

waitForElementToBeVisible(By.xpath("//h1[contains(text(),'Browse Queue')]"), timeout);

@@ -45,9 +45,9 @@ public int countQueue(String name) {

public int getMessagesCount(String name) {
WebElement messagesCountWebElement = driver.findElement(getQueueLocator(name)).
findElements(By.tagName("td")).get(MESSAGES_COUNT_COLUMN);
findElement(By.xpath("td/span/a[contains(@onclick,'browseQueue')]"));

return Integer.parseInt(messagesCountWebElement.findElement(By.tagName("a")).getText());
return Integer.parseInt(messagesCountWebElement.getText());
}

private By getQueueLocator(String name) {

0 comments on commit 5c4d839

Please sign in to comment.