You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by ra...@apache.org on 2023/12/01 11:10:09 UTC
(incubator-kie-tools-temporary-rnd-do-not-use) 01/07: KOGITO-9975: Fix failing Chrome extension SwfTest (#2074)
This is an automated email from the ASF dual-hosted git repository.
rantunes pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools-temporary-rnd-do-not-use.git
commit 0fce54ac407a1d41a87b83a08abf9d07fe157e57
Author: Tomáš David <td...@redhat.com>
AuthorDate: Fri Dec 1 11:14:59 2023 +0100
KOGITO-9975: Fix failing Chrome extension SwfTest (#2074)
Signed-off-by: Tomas David <td...@redhat.com>
---
.../src/framework/github-file-list/GitHubListPage.ts | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/packages/chrome-extension-test-helper/src/framework/github-file-list/GitHubListPage.ts b/packages/chrome-extension-test-helper/src/framework/github-file-list/GitHubListPage.ts
index 294c833163..8f5241e74e 100644
--- a/packages/chrome-extension-test-helper/src/framework/github-file-list/GitHubListPage.ts
+++ b/packages/chrome-extension-test-helper/src/framework/github-file-list/GitHubListPage.ts
@@ -18,7 +18,6 @@
*/
import { By } from "selenium-webdriver";
-import Element from "../Element";
import GitHubListItem from "./GitHubListItem";
import Page from "../Page";
@@ -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());
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org