Skip to content

Instantly share code, notes, and snippets.

View Lightning00Blade's full-sized avatar

Nikolay Vitkov Lightning00Blade

View GitHub Profile
@Lightning00Blade
Lightning00Blade / Auth-logs.logs
Created May 24, 2024 08:39
FF BiDi logs for AuthRequired
> test:firefox:bidi
> wireit
Analyzing
> test
> wireit --test-suite firefox-bidi
Analyzing
@Lightning00Blade
Lightning00Blade / puppeteer-breaks-chrome.js
Created April 26, 2024 12:55
Auth Navigation Breaks Puppeteer.
import puppeteer from "puppeteer";
import http from "http";
//create a server object:http
const server = http
.createServer(function (req, res) {
if (req.url.includes("auth.html")) {
const credentials = Buffer.from(
(req.headers.authorization || "").split(" ")[1] || "",
"base64"
@Lightning00Blade
Lightning00Blade / firefox-navigation-issue.logs
Created April 25, 2024 13:17
When FF navigates it picks the first id that resolves
2024-04-25T13:10:32.620Z puppeteer:webDriverBiDi:SEND ► [
'{"id":10,"method":"browsingContext.navigate","params":{"context":"deeb68fb-83f5-4fcf-8373-42eecdeafcd7","url":"http://localhost:34367/grid.html","wait":"interactive"}}'
]
2024-04-25T13:10:32.656Z puppeteer:webDriverBiDi:RECV ◀ [
'{"type":"event","method":"browsingContext.fragmentNavigated","params":{"context":"deeb68fb-83f5-4fcf-8373-42eecdeafcd7","navigation":"7513af65-e7b5-4791-b331-4f1db6e6fc6a","timestamp":1714050632654,"url":"http://localhost:34367/empty.html"}}'
]
2024-04-25T13:10:32.699Z puppeteer:webDriverBiDi:RECV ◀ [
'{"type":"event","method":"browsingContext.navigationStarted","params":{"context":"deeb68fb-83f5-4fcf-8373-42eecdeafcd7","navigation":"4a6ca2fa-d5b3-4483-a02e-330136d028f2","timestamp":1714050632661,"url":"http://localhost:34367/grid.html"}}'
]
2024-04-16T11:22:02.992Z puppeteer:protocol:RECV ◀ [
'{"method":"Page.frameStartedLoading","params":{"frameId":"323830E38071D3AAFE9F5F20FC53497D"},"sessionId":"EDCD9EB60F8CB3C04E9498172C0E7D02"}'
]
2024-04-16T11:22:02.993Z puppeteer:protocol:RECV ◀ [
'{"method":"Network.requestWillBeSent","params":{"requestId":"EC9E8A0A3C5CBA635FB126B04B862BEF","loaderId":"EC9E8A0A3C5CBA635FB126B04B862BEF","documentURL":"https://bit.ly/1gqbFUR","request":{"url":"https://bit.ly/1gqbFUR","method":"GET","headers":{"Upgrade-Insecure-Requests":"1","User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/123.0.0.0 Safari/537.36","sec-ch-ua":"\\"Chromium\\";v=\\"123\\", \\"Not:A-Brand\\";v=\\"8\\"","sec-ch-ua-mobile":"?0","sec-ch-ua-platform":"\\"Linux\\""},"mixedContentType":"none","initialPriority":"VeryHigh","referrerPolicy":"strict-origin-when-cross-origin","isSameSite":true},"timestamp":1787808.87665,"wallTime":1713266522.992787,"initiator":{"type":"other"},"redirectHasExtraInfo":
@Lightning00Blade
Lightning00Blade / RemoveTest.log
Created March 19, 2024 13:56
Removed by this change
> format:expectations
> node tools/sort-test-expectations.mjs
removing {
testIdPattern: '[screenshot.spec] Screenshots ElementHandle.screenshot should work with a rotated element',
platforms: [ 'darwin', 'linux', 'win32' ],
parameters: [ 'cdp', 'firefox', 'headless' ],
expectations: [ 'FAIL' ],
comment: 'TODO: add a comment explaining why this expectation is required (include links to issues)'
@Lightning00Blade
Lightning00Blade / output.log
Created March 19, 2024 12:20
What was removed
removing {
testIdPattern: '[screenshot.spec] Screenshots ElementHandle.screenshot should work with a rotated element',
platforms: [ 'darwin', 'linux', 'win32' ],
parameters: [ 'cdp', 'firefox', 'headless' ],
expectations: [ 'FAIL' ],
comment: 'TODO: add a comment explaining why this expectation is required (include links to issues)'
} already covered by {
testIdPattern: '[screenshot.spec] Screenshots ElementHandle.screenshot should work with a rotated element',
platforms: [ 'darwin', 'linux', 'win32' ],
parameters: [ 'cdp', 'firefox' ],
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
import {
DocSection,
type TSDocConfiguration,
DocPlainText,
StringBuilder,
DocParagraph,
DocSoftBreak,
This file has been truncated, but you can view the full file.
<!doctype html>
<html lang="en">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BiDi-CDP Mapper WPT test pass rate</title>
<style>
body {
font-family: Roboto, serif;
font-size: 13px;
color: #202124;
@Lightning00Blade
Lightning00Blade / driver.log
Created February 27, 2024 13:30
WPT - ChromeDriver logs
This file has been truncated, but you can view the full file.
[1709038964.265][INFO]: Starting ChromeDriver 124.0.6325.0 (92428a3d8e602397d7f68e00b085b995b198db3f-refs/branch-heads/6325@{#1}) on port 54405
[1709038964.265][INFO]: Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
[1709038965.292][INFO]: [b63ee93d9f547b7a533aaa2ba044f601] COMMAND InitSession {
"capabilities": {
"alwaysMatch": {
"goog:chromeOptions": {
"args": [ "--ignore-certificate-errors-spki-list=sCJ8962Wxqgz44IKoPQLcDT7YRRAxO2w1iYIqpMYHhg=,0Rt4mT6SJXojEMHTnKnlJ/hBKMBcI4kteBlhR1eTTdk=", "--autoplay-policy=no-user-gesture-required", "--use-fake-device-for-media-stream", "--use-fake-ui-for-media-stream", "--use-fake-ui-for-fedcm", "--short-reporting-delay", "--host-resolver-rules=MAP nonexistent.*.test ^NOTFOUND, MAP *.test 127.0.0.1, MAP *.test. 127.0.0.1", "--enable-features=SecurePaymentConfirmationBrowser", "--webtransport-developer-mode", "--enable-features=GenericSensorExtraClasses", "--ip-address-space-o
@Lightning00Blade
Lightning00Blade / wpt.log
Created February 27, 2024 13:04
WPT logs for `webdriver/tests/bidi/input/perform_actions/invalid.py`
Running WPT with options:
{
"CHROMEDRIVER": true,
"HEADLESS": true
}
> chromium-bidi@0.5.11 wpt
> wireit ./wpt/webdriver/tests/bidi/input/perform_actions/invalid.py
Analyzing