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 <[email protected]>
AuthorDate: Fri Dec 1 11:14:59 2023 +0100

    KOGITO-9975: Fix failing Chrome extension SwfTest (#2074)
    
    Signed-off-by: Tomas David <[email protected]>
---
 .../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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to