flathub / flathub/org.eclipse.Java
How can i use Selenium Webdriver inside flatpak Eclipse?
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 6
- Fork
- 10
- Merge trung bình
- 7 giờ 27 phút
- Pull request đã merge (30 ngày)
- 2
Mô tả
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?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu với điểm vào đang bị lỗi tại StepFiles.Login.setup(Login.java:29) và kịch bản trong src/test/java/FeatureFiles/Login.feature:47. Xem xét ngữ cảnh stack trace của FirefoxBinary và FirefoxOptions cùng với thiết lập Flatpak Eclipse và trình duyệt được mô tả trong issue. Hoàn tất có nghĩa là ghi lại một cách được hỗ trợ để chạy kịch bản trong Flatpak Eclipse, hoặc ghi rõ hạn chế liên quan.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- desktop, testing-qa
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100