Skip to content

Commit

Permalink
KOGITO-9975: Fix failing Chrome extension SwfTest (#2074)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas David <[email protected]>
  • Loading branch information
tomasdavidorg authored Dec 1, 2023
1 parent d8fef4b commit 0fce54a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

import { By } from "selenium-webdriver";
import Element from "../Element";
import GitHubListItem from "./GitHubListItem";
import Page from "../Page";

Expand All @@ -30,7 +29,7 @@ export default class GitHubListPage extends Page {
}

public async getFile(name: string): Promise<GitHubListItem> {
const file: By = By.xpath(`//td[@class='react-directory-row-name-cell-large-screen']//div[@title='${name}']`);
const file: By = By.xpath(`//td[@class='react-directory-row-name-cell-large-screen'][.//a[@title='${name}']]`);
await this.tools.by(file).wait(5000).untilPresent();
return await this.tools.createPageFragment(GitHubListItem, await this.tools.by(file).getElement());
}
Expand Down

0 comments on commit 0fce54a

Please sign in to comment.