Skip to content

User agent string cannot be set when using command line headless option #186

Answered by ElSnoMan
chingc asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @chingc,

First off, thanks for such a clean and readable Issue! I really appreciate the details and structure because that made it super easy to understand what's going on.

Ok, now to the good stuff. I changed this from bug to discussion because this is expected behavior, but I'm always open to discuss other solutions! Let's break down the order of operations with the PyleniumConfig object:

  1. Instance of PyleniumConfig is created from pylenium.json
  2. Fields are overriden (not appended) by CLI arguments
  3. Fields can be further overriden or appended within custom fixtures or tests (I'll provide an example below)
  4. Pylenium is then instantiated with the instance of PyleniumConfig

This was inten…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ElSnoMan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #178 on April 19, 2021 22:09.