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

Wallaby doesn't find html elements anymore #719

Open
1 task done
alexandreguz opened this issue Dec 14, 2022 · 4 comments
Open
1 task done

Wallaby doesn't find html elements anymore #719

alexandreguz opened this issue Dec 14, 2022 · 4 comments

Comments

@alexandreguz
Copy link

Elixir and Erlang/OTP versions

Erlang/OTP 24 [erts-12.3.2.3] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit]

Elixir 1.14.2 (compiled with Erlang/OTP 23)

Operating system

MacOS

Browser

Chrome

Driver

ChromeDriver

Correct Configuration

  • I confirm that I have Wallaby configured correctly.

Current behavior

Before I upgraded my elixir to 1.14 ( I was using 1.9) and Wallaby to 0.30 ( was using 0.28) if I used an element as a query worked perfectly, but not anymore. Example:

assert_has(parent, css("span", text: "Some Text"))

I could use just 'span' but now it's possible CSS options - IDs, classes etc.

The message error isn't that 'expected to find etc' but the test fails because timeout

Is this a bug?

Expected behavior

find the element 'span' with specific text

Test Code & HTML

assert_has(parent, css("span", text: "Some Text")) doesn't find the span

<span class="mx-1 fs-10">CAMPOS APROVADOS</span>

Demonstration Project

No response

@mhanberg
Copy link
Member

Can you confirm that your Chrome and Chromedriver versions are both the same and the latest?

@alexandreguz
Copy link
Author

alexandreguz commented Dec 15, 2022

Clear and loud, captain

image

@alejandrodevs
Copy link

alejandrodevs commented Apr 17, 2023

I can confirm this issue. It is happening in version 112.0.5615.49. It does not work using only the tag but if I add the tag and a class like css("span.mx-1", text: "Some Text") it works correctly.

@mhanberg
Copy link
Member

if either of you can provide a repo or a script that uses Mix.install that can reproduce the issue, I would very much appreciate it and it will go a long ways towards finding a fix. @alejandrodevs @alexandreguz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants