Package org.seleniumhq.selenium.fluent.internal

Source Code of org.seleniumhq.selenium.fluent.internal.NotAttributeTest

package org.seleniumhq.selenium.fluent.internal;

import org.junit.Test;
import org.openqa.selenium.By;
import org.seleniumhq.selenium.fluent.BaseTest;
import org.seleniumhq.selenium.fluent.FluentBy;
import org.seleniumhq.selenium.fluent.FluentWebElement;

import static org.hamcrest.CoreMatchers.notNullValue;
import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.when;

public class NotAttributeTest extends BaseTest {

    @Test
    public void abbr_functionality2() {

        when(wd.findElement(By.xpath(".//abbr[not(@foo)]"))).thenReturn(we);
        when(we.getTagName()).thenReturn("abbr");

        FluentWebElement fe = fwd.abbr(FluentBy.notAttribute("foo"));

        assertThat(fe, notNullValue());

    }

}
TOP

Related Classes of org.seleniumhq.selenium.fluent.internal.NotAttributeTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.