Skip to content

Commit

Permalink
Merge pull request #260 from cloudsufi/ChangingLocatorsForLogs
Browse files Browse the repository at this point in the history
Changing open logs locator to datatest-id
  • Loading branch information
itsankit-google authored Jan 11, 2025
2 parents 041bc78 + 47e0dfc commit f1b3d6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class CdfLogLocators {
@FindBy(xpath = "//*[contains(text(),'Pipeline') and contains(text(),'failed')]/parent::*//child::div[2]")
public static WebElement validateCategoryError;

@FindBy(xpath = "//*[@class=\"MuiButton-label\" and contains(text(),'View')]")
@FindBy(xpath = "//*[@data-testid='view-advanced-logs']")
public static WebElement getGoToAdvanceLogs;

@FindBy(xpath = "//*[contains(text(),'Pipeline') and contains(text(),'succeeded')]")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static WebElement locatePipelineStatus(String status) {
return SeleniumDriver.getDriver().findElement(By.xpath("//*[@data-cy='" + status + "']"));
}

@FindBy(xpath = "//div[@data-cy='log-viewer-btn-toggle']//div[contains(@class, 'run-logs-btn')]")
@FindBy(xpath = "//*[@data-testid='log-viewer-btn-toggle']")
public static WebElement logs;

@FindBy(xpath = "//span[text()='Download All']/parent::a/following-sibling::div//button")
Expand Down

0 comments on commit f1b3d6a

Please sign in to comment.