Skip to content

Conversation

@masenf
Copy link
Collaborator

@masenf masenf commented Oct 13, 2023

Using environment variables APP_HARNESS_HEADLESS and APP_HARNESS_DRIVER, support switching out the browser engine used by default in the AppHarness.

Using environment variables APP_HARNESS_HEADLESS and APP_HARNESS_DRIVER,
support switching out the browser engine used by default in the AppHarness.
driver = driver_clz() if driver_clz is not None else webdriver.Chrome()
want_headless = False
options = None
if os.environ.get("APP_HARNESS_HEADLESS"):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we start adding the REFLEX_ prefix now for the env vars, or do we use a different PR to change all of them?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's have a separate PR where we do this for all the env vars

if os.environ.get("APP_HARNESS_HEADLESS"):
want_headless = True
if driver_clz is None:
requested_driver = os.environ.get("APP_HARNESS_DRIVER", "Chrome")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as above.

@picklelo picklelo merged commit d0cb5b0 into main Oct 13, 2023
@masenf masenf deleted the masenf/app-harness-headless branch October 18, 2023 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants