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

incomplete attr #258

Open
Mon-ius opened this issue Jun 30, 2024 · 1 comment
Open

incomplete attr #258

Mon-ius opened this issue Jun 30, 2024 · 1 comment

Comments

@Mon-ius
Copy link

Mon-ius commented Jun 30, 2024

consider <div class="A B C D">

The result of attr of these shoud be same

    let qid = "div.A";
    let _ = client.wait().for_element(Locator::Css(qid)).await?;
    let question = client.find(Locator::Css(qid)).await?;
    let attr = question.attr("class").await?.unwrap();
    let qid = "div.B";
    let _ = client.wait().for_element(Locator::Css(qid)).await?;
    let question = client.find(Locator::Css(qid)).await?;
    let attr = question.attr("class").await?.unwrap();
    let qid = "div.C";
    let _ = client.wait().for_element(Locator::Css(qid)).await?;
    let question = client.find(Locator::Css(qid)).await?;
    let attr = question.attr("class").await?.unwrap();
@jonhoo
Copy link
Owner

jonhoo commented Jul 14, 2024

Is that not the case? What output do you get? We just pass this directly on to WebDriver, so it's unlikely there's an issue in fantoccini here. If you could submit a PR with a new test that fails on this, that'd be helpful!

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

2 participants