-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for adding path to alternative browser #61
Comments
The code could be something like
|
this is a pretty good use case imo @SnoCold. @ebebbington, thoughts? |
Thank you so much @crookse . If accepted I would like if I could take this issue up. I would still need help in creating a general purpose test case for this custom path scenario. |
@crookse yeah I mean it sounds good!:) There definitely seems to be a usecase @SnoCold if you want to take on this issue, you are more than welcome :) BUT it’s probably best you either:
Essentially, a new browser would have the same API as our chrome and Firefox one, ie copy the Firefox source code file to a new brave file, and just change it to interact with brave instead |
@ebebbington, i think what @SnoCold is asking for is a way to make the chrome browser API dynamic and to have it use a different binary than the default one -- not that we support a different browser entirely through code, but we support different binaries that use the same browser engine. this being said, maybe we change the APIs to reflect browser engine names and not browser names? |
Yes surely @ebebbington . Yes @crookse , Exactly that way. I tested it in my local machine (on local Master). It utilizes the same chromedriver seamlessly. |
Ah ok I see, my bad yeah maybe browser engine names might be better - I think an extra property could be added in the ‘build’ method to make it easy to implement, it’s just whether the API (chrome dev tools api that is) would act the same it seems like it should be as simple as:
|
I feel like I should 'await' the PR merge before commencing on this path 😅 |
;) It’s close to being merged (just being reviewed at the moment) so we can let you know when it is :) |
@SnoCold it's merged into master now :) Feel free to work on this issue, if not (ie no time to do so) then let us know, and we can implement it Any questions or whatever it may be, you'ree free to ask on the discord too: https://discord.gg/SgejNXq I think this issue is also very similar to #33, which i reckon a PR for this issue, will close that issue |
Thanks a lot for informing me @ebebbington . I will get to it asap. 😄 |
@crookse @ebebbington I have made the initial changes and tested them locally, they pass.
pushing to remote branch for saving current changes |
I’d like to hear Eric’s view point too |
Yes the code modifications don't break existing tests, if no path is provided, the tests will take by default chrome/firefox default binary paths. The BuildOption for custom binary is optional. |
|
I see what you mean. I think leaving the name as-is to Firefox and Chrome is more intuitive. If someone has doubts, they can always refer the documentation. As for the tests, I will start working on them. My laptop had to go to service today. It will take some time to be back, but I'll be sure to pick-up soon. |
I raised the PR, but no idea why the first test of the PR Actions failed. Also, please let me know if there is something more required in this PR or issue or anything that comes to mind. 😄 |
Don’t worry about that failing workflow, it’s more an internal thing and doesn’t affect the status of your PR :) well review it when we can :) |
Summary
What: Ability to add Application Path for Custom Browser
I use Brave Browser (Chromium Based) for my testing purposes. It would be Great if I could add the path to my browser application in the headless browser object before building it
Why:
There are developers who prefer Brave, and it has lately been getting famous as an anti-Chrome Browser
Acceptance Criteria
Below is a list of tasks that must be completed before this issue can be closed.
Example Pseudo Code (for implementation)
// Add example pseudo code for implementation
The text was updated successfully, but these errors were encountered: