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 fails to install #5551

Closed
bencevans opened this issue Nov 4, 2022 · 3 comments
Closed

[bug] tauri-driver fails to install #5551

bencevans opened this issue Nov 4, 2022 · 3 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@bencevans
Copy link

Describe the bug

Unable to install tauri-driver due to DEVICE_BINARY not found in scope and into_native_object() method not found in TauriOptions.

Reproduction

cargo install tauri-driver                                                                        *[testing]
    Updating crates.io index
  Installing tauri-driver v0.1.2
   Compiling proc-macro2 v1.0.47
   Compiling quote v1.0.21
   Compiling unicode-ident v1.0.5
   Compiling syn v1.0.103
   Compiling autocfg v1.1.0
   Compiling libc v0.2.137
   Compiling pin-project-lite v0.2.9
   Compiling futures-core v0.3.25
   Compiling log v0.4.17
   Compiling cfg-if v1.0.0
   Compiling futures-channel v0.3.25
   Compiling slab v0.4.7
   Compiling futures-task v0.3.25
   Compiling memchr v2.5.0
   Compiling futures-util v0.3.25
   Compiling futures-sink v0.3.25
   Compiling tokio v1.21.2
   Compiling futures-io v0.3.25
   Compiling itoa v1.0.4
   Compiling pin-utils v0.1.0
   Compiling serde_derive v1.0.147
   Compiling mio v0.8.5
   Compiling socket2 v0.4.7
   Compiling serde v1.0.147
   Compiling once_cell v1.16.0
   Compiling signal-hook v0.3.14
   Compiling fnv v1.0.7
   Compiling bytes v1.2.1
   Compiling httparse v1.8.0
   Compiling tracing-core v0.1.30
   Compiling signal-hook-registry v1.4.0
   Compiling serde_json v1.0.87
   Compiling http v0.2.8
   Compiling try-lock v0.2.3
   Compiling anyhow v1.0.66
   Compiling want v0.3.0
   Compiling http-body v0.4.5
   Compiling tracing v0.1.37
   Compiling tower-service v0.3.2
   Compiling httpdate v1.0.2
   Compiling ryu v1.0.11
   Compiling either v1.8.0
   Compiling which v4.3.0
   Compiling pico-args v0.4.2
   Compiling futures-macro v0.3.25
   Compiling tokio-macros v1.8.0
   Compiling signal-hook-tokio v0.3.1
   Compiling futures-executor v0.3.25
   Compiling hyper v0.14.22
   Compiling futures v0.3.25
   Compiling tauri-driver v0.1.2
error[E0425]: cannot find value `DRIVER_BINARY` in this scope
  --> /Users/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/tauri-driver-0.1.2/src/webdriver.rs:33:32
   |
33 |     None => match which::which(DRIVER_BINARY) {
   |                                ^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `DRIVER_BINARY` in this scope
  --> /Users/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/tauri-driver-0.1.2/src/webdriver.rs:39:11
   |
39 |           DRIVER_BINARY
   |           ^^^^^^^^^^^^^ not found in this scope

error[E0599]: no method named `into_native_object` found for struct `TauriOptions` in the current scope
   --> /Users/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/tauri-driver-0.1.2/src/server.rs:117:35
    |
23  | struct TauriOptions {
    | ------------------- method `into_native_object` not found for this struct
...
117 |             native = Some(options.into_native_object());
    |                                   ^^^^^^^^^^^^^^^^^^ method not found in `TauriOptions`

Some errors have detailed explanations: E0425, E0599.
For more information about an error, try `rustc --explain E0425`.
error: could not compile `tauri-driver` due to 3 previous errors
error: failed to compile `tauri-driver v0.1.2`, intermediate artifacts can be found at `/var/folders/dq/qzx4kf690mx5k64kl51n29500000gn/T/cargo-installgHr43K`

Expected behavior

Install Successfully

Platform and versions

$ npm run tauri info                                             *[testing]

> [email protected] tauri
> tauri info


Environment
  › OS: Mac OS 13.0.0 X64
  › Node.js: 18.11.0
  › npm: 8.19.2
  › pnpm: Not installed!
  › yarn: 1.22.19
  › rustup: 1.25.1
  › rustc: 1.65.0
  › cargo: 1.65.0
  › Rust toolchain: stable-aarch64-apple-darwin 

Packages
  › @tauri-apps/cli [NPM]: 1.1.1
  › @tauri-apps/api [NPM]: 1.1.0
  › tauri [RUST]: 1.1.1,
  › tauri-build [RUST]: 1.1.1,
  › tao [RUST]: 0.14.0,
  › wry [RUST]: 0.21.1,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../build
  › devPath: http://localhost:3000/
  › framework: React

App directory structure
  ├─ yolov5onnxruntime
  ├─ node_modules
  ├─ public
  ├─ webdriver
  ├─ .github
  ├─ src-tauri
  ├─ yolov5cv
  ├─ .ipynb_checkpoints
  ├─ build
  ├─ .git
  └─ src

Stack trace

No response

Additional context

No response

@bencevans bencevans added status: needs triage This issue needs to triage, applied to new issues type: bug labels Nov 4, 2022
@lucasfernog
Copy link
Member

Unfortunately tauri-driver does not work on macOS yet :(

We couldn't find a solution, on macOS the web driver implementation only works when inspecting the Safari application and not a custom webview executable.

@bencevans
Copy link
Author

Thanks for the quick response!

@ipauler
Copy link

ipauler commented Jan 3, 2023

Unfortunately tauri-driver does not work on macOS yet :(

We couldn't find a solution, on macOS the web driver implementation only works when inspecting the Safari application and not a custom webview executable.

Is there any way to get some e2e testing for mac os ? Or only using some third party desktop automation testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

3 participants