Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] tauri-driver serializes webviewOptions as null if not present, but an object is required #12381

Open
bicarlsen opened this issue Jan 13, 2025 · 0 comments
Labels
scope: webdriver tauri-driver tool and other items related to WebDriver status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@bicarlsen
Copy link

Describe the bug

tauri-driver serializes webviewOptions as null if not present, but an object is required. This results in the error

WebDriverError: invalid argument: cannot parse capability: ms:edgeOptions from invalid argument: 
cannot parse webviewOptions from invalid argument: must be a dictionary when running "http://localhost:4444/session" with method "POST" and args 
"{"capabilities":{"alwaysMatch":{"tauri:options":{"application":"<path/to/binary>"}},"firstMatch":[{}]}}"

Reproduction

Follow the testing guide for WebDriverIO.

Expected behavior

Options should be parsed with correct types.

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.26100 x86_64 (X64)
    ✔ WebView2: 131.0.2903.112
    ✔ MSVC: Visual Studio Build Tools 2022
    ✔ rustc: 1.83.0 (90b35a623 2024-11-26)
    ✔ cargo: 1.83.0 (5ffbef321 2024-10-29)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (environment override by RUSTUP_TOOLCHAIN)
    - node: 23.6.0
    - pnpm: 9.12.3
    - npm: 10.9.2

[-] Packages
    - tauri 🦀: 2.2.2
    - tauri-build 🦀: 2.0.5
    - wry 🦀: 0.48.0
    - tao 🦀: 0.31.1
    - tauri-cli 🦀: 2.2.2
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli : 2.2.2 (outdated, latest: 2.2.4)

[-] Plugins
    - tauri-plugin-log 🦀: 2.2.0
    - @tauri-apps/plugin-log : not installed!

[-] App
    - build-type: bundle
    - CSP: connect-src ipc: http://ipc.localhost; font-src https://fonts.gstatic.com; style-src 'unsafe-inline' 'self' https://fonts.googleapis.com; default-src 'self' customprotocol: asset:; img-src 'self' asset: http://asset.localhost blob: data:
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/

Stack trace

N/A

Additional context

No response

@bicarlsen bicarlsen added status: needs triage This issue needs to triage, applied to new issues type: bug labels Jan 13, 2025
@FabianLars FabianLars added the scope: webdriver tauri-driver tool and other items related to WebDriver label Jan 13, 2025
bicarlsen added a commit to bicarlsen/tauri that referenced this issue Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: webdriver tauri-driver tool and other items related to WebDriver status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants