flathub / flathub/org.eclipse.Java

How can i use Selenium Webdriver inside flatpak Eclipse?

オープン
#30 コメント 10 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
言語のデータがありません
スター
6
フォーク
10
平均マージ
7時間 27分
マージ済み PR(30日)
2

説明

Hi guys im trying to run chromedriver and geckodriver for firefox inside an Eclipse project, but flatpak Eclipse app cant open Firefox or Chromium because Eclipse does not have access to the binaries of the system, i have tried to give access to the binaries using flatseal but nothing works:

PATH=/app/bin:/app/openjdk-11/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin:

**This is the Eclipse error log:**
Scenario: Login in to account with correct details # src/test/java/FeatureFiles/Login.feature:47
org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: LINUX
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'debian', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.0-11-amd64', java.version: '11.0.8'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.FirefoxBinary.(FirefoxBinary.java:100)
at java.base/java.util.Optional.orElseGet(Optional.java:369)
at org.openqa.selenium.firefox.FirefoxOptions.getBinary(FirefoxOptions.java:216)
at org.openqa.selenium.firefox.FirefoxDriver.toExecutor(FirefoxDriver.java:187)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:147)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:125)
at StepFiles.Login.setup(Login.java:29)

When i try to execute my code with a local Eclipse installation everything works fine.

Is there a way to give flatpak Eclipse access to the flatpak Firefox or chormium binaries?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

StepFiles.Login.setup(Login.java:29) の失敗しているエントリーポイントと、src/test/java/FeatureFiles/Login.feature:47 のシナリオから始めます。Issue に記載されている Flatpak Eclipse とブラウザーのセットアップと併せて、FirefoxBinary と FirefoxOptions のスタックトレースコンテキストを確認します。Flatpak Eclipse でシナリオを実行するサポート対象の方法を文書化するか、関連する制限を明確に記録できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
desktop, testing-qa
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。