How to pass Firefox preference in robot framework

How can I pass firefox preference using the robot framework? I need to set “media.gmp-manager.updateEnabled” to “true”

4 Likes

Please try passing the script I am giving you in your code after the desired capabilities in the *.robot file.

I am sharing an image for your reference.

ff_profile_dir=set_preference(“media.eme.enabled”, True);set_preference(“media.gmp-manager.updateEnabled”, True):

2 Likes

Hi Sakshama,

Tried the below code it failed.

open browser ${url} ${browser} options=add_argument("–disable-popup-blocking");add_argument("–ignore-certificate-errors");add_argument(“test-type”) … ff_profile_dir=set_preference(“media.eme.enabled”, True);set_preference(“media.gmp-manager.updateEnabled”, True):

1 Like