Rayrun
← Back to Discord Forum

How to launch firefox on playwright-extra with args?

I'm trying to launch firefox using the args below, but it only works using chromium, the window size and position is important to my code, how do I do that? It also has to be firefox.

import { firefox } from 'playwright-extra'
  await firefox
    .launch({
      headless: false,
      args: ['--window-size=800,600', '--window-position=1921,0']
    })

This thread is trying to answer question "How can I launch Firefox on playwright-extra with specific arguments for window size and position?"

6 replies

basically https://wiki.mozilla.org/Firefox/CommandLineOptions are the command lines for firefox and do not include window size and position?

@shivaguy: I was using viewport size in the page, but the window position is even more important to me, any ideas? thinking about a windows software to help me out with the window position, I tried to test using any other browser and its not working for what I need, I really needed firefox + window position

I was using viewport size in the page, but the window position is even more important to me, any ideas? thinking about a windows software to help me out with the window position, I tried to test using any other browser and its not working for what I need, I really needed firefox + window position

This worked for dimension

image.png

thank you brother, I will try to use those args later on and work on something for the position, thinking about https://www.autohotkey.com/docs/v1/lib/WinMove.htm

You should try that.

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.