You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
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.
The text was updated successfully, but these errors were encountered: