fantoccini icon indicating copy to clipboard operation
fantoccini copied to clipboard

incomplete attr

Open Mon-ius opened this issue 1 year ago • 1 comments

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();

Mon-ius avatar Jun 30 '24 10:06 Mon-ius

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!

jonhoo avatar Jul 14 '24 14:07 jonhoo