Skip to content
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

chrome.switches changing value of --use-file-for-fake-video-capture #2174

Closed
edgardosilverio opened this issue Jul 17, 2020 · 3 comments
Closed
Labels

Comments

@edgardosilverio
Copy link

My test is to check the take photo functionality of the page.
I'm using and added --use-file-for-fake-video-capture=${user.dir}/src/test/resources/templates/takephoto.y4m to chrome.switches and it works pretty well. The question is, can i change the file value in chrome.switches? My other test requires me to take different photo to check the validity of photo taken. I tried setting a new value of chrome.switches using environmentVariables.setProperty("chrome.switches", newValue), it only changes the value of chrome.switches (as per checking in logs) but it didnt take effect.

@globalworming
Copy link
Collaborator

No sure if you can change the value on a running driver on the fly... try closing the current driver, then setting the system property, then starting the driver again.

@globalworming
Copy link
Collaborator

My other test requires me to take different photo to check the validity of photo taken

do you compare screenshots or videos?

@edgardosilverio
Copy link
Author

edgardosilverio commented Jul 21, 2020

My other test requires me to take different photo to check the validity of photo taken

do you compare screenshots or videos?

i'm taking photo using the video (y4m) loaded. so im changing it to blurry one if my test requires me to take invalid picture.

Btw Im changing the value of chrome.switches before the browser loads, previous version of serenity allows me to do that but it doesnt take effect now.

@wakaleo wakaleo closed this as completed Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants