Skip to content

Using Playwright #45532

Open
Open

Description

@DomicianoRossi

What version of the Codex App are you using (From “About Codex” dialog)?

26.908.40834

What subscription do you have?

[email protected]

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

  1. ID do feedback: 01a0a1f9-287d-77d2-b89f-9dc38bd7b3db
  2. Endereço: https://g1.globo.com/
  3. Erro: The site-safety policy blocks this action
  4. Seu teste: o site abre normalmente nos navegadores e pelo Playwright local.

What steps can reproduce the bug?

Eu não entendi. o https://g1.globo.com/ está bloqueando?

19:16

Não. O bloqueio veio da ferramenta de navegador desta sessão, não do G1.
Ao tentar abrir o endereço, a ferramenta informou que sua política de segurança não permite acessar esse domínio. Ela não explicou o motivo específico.
Minha resposta anterior ficou ambígua: não há evidência de que o G1 esteja bloqueando você ou o Playwright.

19:16

Eu consigo abrir o site normalmente por todos os navegadores instalados

19:17

Sim, isso é compatível com o que aconteceu. A restrição vale para a minha ferramenta de automação nesta sessão, não para os seus navegadores.
O G1 abre normalmente para você; minha tentativa foi barrada pela ferramenta antes de acessar o site. Eu não tenho acesso ao motivo específico nem como remover essa restrição.

19:17

Então me instrua como fazer isso manualmente.

19:18

Para abrir o G1 manualmente usando o Playwright instalado, execute no PowerShell:
playwright open https://g1.globo.com/
Se aparecer uma mensagem dizendo que o navegador não está instalado, execute:
playwright install chromium
Depois, repita o primeiro comando. Uma janela do navegador será aberta com o site.

19:18

o chromium está instalado porque já uso com outra IA. De qualquer maneira, fiz o teste e funcionou normalmente

19:20

Isso confirma que o Playwright e o Chromium estão funcionando e conseguem abrir o G1 no seu computador.
O bloqueio ocorreu apenas na minha ferramenta nesta sessão. Minha tentativa anterior não chegou a testar o Playwright que você instalou.

19:20

Ok, mas ainda não tenho a solução para resolver a questão

19:21

Você tem razão. Ainda não resolvemos a execução autônoma por mim. Seu teste confirmou que a instalação funciona.
Nesta sessão, recebi um bloqueio explícito que também proíbe tentar o mesmo acesso por outro caminho. Não consigo removê-lo, e reinstalar o Playwright não resolve isso.
O próximo passo é reportar o bloqueio pelo suporte ou feedback do aplicativo, com esta mensagem:
A automação do Codex bloqueia https://g1.globo.com/ por “site-safety policy”. O endereço abre normalmente nos navegadores e pelo comando local playwright open https://g1.globo.com/. Preciso verificar por que a política impede esse domínio.

Não tenho evidência de uma configuração local que permita corrigir essa restrição.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    app
    on Sep 14, 2026
  2. added
    bug
    windows-os
    on Sep 14, 2026
  3. changed the title [-]Utilização do Playwright[/-] [+]Using Playwright[/+] on Sep 14, 2026
  4. github-actions commented on Sep 14, 2026

    @github-actions
    Contributor

    English translation:

    What version of the Codex App are you using (From “About Codex” dialog)?

    26.908.40834

    What subscription do you have?

    [email protected]

    What platform is your computer?

    Microsoft Windows NT 10.0.26200.0 x64

    What issue are you seeing?

    1. Feedback ID: 01a0a1f9-287d-77d2-b89f-9dc38bd7b3db
    2. Address: https://g1.globo.com/
    3. Error: The site-safety policy blocks this action
    4. Your test: the site opens normally in browsers and through local Playwright.

    What steps can reproduce the bug?

    I didn't understand. Is https://g1.globo.com/ blocking access?

    19:16

    No. The block came from this session's browser tool, not from G1.
    When I tried to open the address, the tool reported that its security policy does not allow access to this domain. It did not explain the specific reason.
    My previous response was ambiguous: there is no evidence that G1 is blocking you or Playwright.

    19:16

    I can open the site normally in all installed browsers

    19:17

    Yes, that is consistent with what happened. The restriction applies to my automation tool in this session, not to your browsers.
    G1 opens normally for you; my attempt was blocked by the tool before accessing the site. I do not have access to the specific reason or a way to remove this restriction.

    19:17

    Then tell me how to do this manually.

    19:18

    To open G1 manually using the installed Playwright, run this in PowerShell:
    playwright open https://g1.globo.com/
    If a message appears saying that the browser is not installed, run:
    playwright install chromium
    Then repeat the first command. A browser window will open with the site.

    19:18

    chromium is installed because I already use it with another AI. Anyway, I ran the test and it worked normally

    19:20

    That confirms that Playwright and Chromium are working and can open G1 on your computer.
    The block occurred only in my tool in this session. My previous attempt did not actually test the Playwright you installed.

    19:20

    OK, but I still don't have a solution to resolve the issue

    19:21

    You're right. We still haven't resolved how to get me to run it autonomously. Your test confirmed that the installation works.
    In this session, I received an explicit block that also prohibits attempting the same access through another route. I cannot remove it, and reinstalling Playwright does not resolve this.
    The next step is to report the block through support or the app's feedback feature, with this message:
    Codex automation blocks https://g1.globo.com/ due to “site-safety policy”. The address opens normally in browsers and through the local command playwright open https://g1.globo.com/. I need to check why the policy blocks this domain.

    I have no evidence of a local setting that would allow this restriction to be fixed.

    What is the expected behavior?

    No response

    Additional information

    No response

  5. github-actions commented on Sep 14, 2026

    @github-actions
    Contributor
  6. DomicianoRossi commented on Sep 14, 2026

    @DomicianoRossi
    Author

    Não entendi a questão levantada. quero que o Codex acesso o quie eu pedir pelo Playwright, só isso

  7. gunsnmotorcycles commented on Sep 15, 2026

    @gunsnmotorcycles

    I agree that this unexplained Browser Use restriction is a problem that must be resolved. I am affected by the same site-safety denial when asking Codex to access my MEGA storage.

    MEGA is my private cloud drive, for which I pay a subscription fee. It contains only data I own, and I explicitly authorize Codex to access that data. In my view, accessing my own private cloud storage should be treated no differently from accessing my local hard drive. The fact that I store my files with a cloud provider should not prevent me from using my chosen assistant to manage them.

    My MEGA ingestion workflow worked for weeks. A fresh retry on September 15, 2026, after upgrading to Windows Codex package 26.908.9136.0, still rejected https://mega.nz/fm with: “The site-safety policy blocks this action; no user permission prompt or Auto-review was attempted.” The tool did not disclose a MEGA-specific reason. I am not claiming that every report here has an identical underlying cause.

    Please explain why owner-authorized access to MEGA is restricted and provide a supported resolution or review process. I am asking for this legitimate workflow to work, not for instructions to bypass security controls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbrowserbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions