Skip to content

How to turn on responsive design view. #1175

@Johnz86

Description

@Johnz86

I am using java selenium driver and I want to turn on automatically the responsive design view with specific resolution at firefox start. Is it possible? I tried to set.

String responsiveMode = "{"+"\"key\":\"800x600\",\n"+"\"name\":\"POS Terminal\",\n"+"\"width\":800,\n"+"\"height\": 600"+"}";
FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("devtools.responsiveUI.presets", responsiveMode);

But that did not work. Any recommendation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions