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

Java 4.0.0-beta-3 Relative locators - withTagName is missing #9429

Closed
kasprzakdanielt opened this issue Apr 29, 2021 · 2 comments
Closed

Java 4.0.0-beta-3 Relative locators - withTagName is missing #9429

kasprzakdanielt opened this issue Apr 29, 2021 · 2 comments

Comments

@kasprzakdanielt
Copy link

💥 Regression Report

After updating to beta3, all of my relative locators are showing import errors on
import static org.openqa.selenium.support.locators.RelativeLocator.withTagName;

obraz

On beta2 it works just fine.

Worked up to version: 4.0.0-beta-2

Stopped working in version: 4.0.0-beta-3

To Reproduce

  1. Add "import static org.openqa.selenium.support.locators.RelativeLocator.withTagName;"
  2. Update to beta3
  3. "withTagName" shows and error "Cannot resolve symbol 'withTagName'"

Expected behavior

A clear and concise description of what you expected to happen.

Successful import.

Environment

OS: Windows 10
Browser: any
Browser version: any
Browser Driver version: any
Language Bindings version: java:4.0.0-beta-3

@ghost ghost added the needs-triaging label Apr 29, 2021
@harsha509
Copy link
Member

HI @kasprzakdanielt ,

This behaviour is changed in Selenium4 beta 3 with this PR #9273.

Now Java bindings supports with(By) instead of withTagName allowing the users to pick locators of their choice like

with(By.tagName())
with(By.Id())
with(By.cssSelector())

Hope this helps!

Thanks,
Harsha

@diemol
Copy link
Member

diemol commented Apr 29, 2021

Thanks for pointing that out, @JS31096!

@diemol diemol closed this as completed Apr 29, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants