Examples of findElement()


Examples of net.thucydides.core.annotations.locators.SmartAjaxElementLocator.findElement()

    @Test(timeout = 5000)
    public void should_find_element_immediately_if_a_previous_step_has_failed() {

        SmartAjaxElementLocator locator = new SmartAjaxElementLocator(driver, field, 5);
        StepEventBus.getEventBus().stepFailed(failure);
        locator.findElement();
    }

    @Rule
    public ExpectedException expectedException = ExpectedException.none();
View Full Code Here

Examples of org.apache.xmlbeans.SchemaTypeLoader.findElement()

  public void testHttpImport9() throws Exception
  {
    String url = "http://localhost:8082/test9/testcase.wsdl";
    SchemaTypeLoader schemaTypes = SchemaUtils.loadSchemaTypes( url, new UrlWsdlLoader( url ) );
    assertNotNull( schemaTypes.findElement( new QName( "http://testcase/wsdl", "One" ) ) );
    assertNotNull( schemaTypes.findElement( new QName( "http://testcase/wsdl", "Two" ) ) );
    assertNotNull( schemaTypes.findType( new QName( "http://testcase/one", "OneType" ) ) );
    assertNotNull( schemaTypes.findType( new QName( "http://testcase/two", "TwoType" ) ) );

    url = new File( "src\\test-resources\\test9\\testcase.wsdl" ).toURI().toURL().toString();
View Full Code Here

Examples of org.apache.xmlbeans.SchemaTypeSystem.findElement()

          if( schemaType.isNoType() )
          {
            SchemaTypeSystem typeSystem = wsdlRequest.getOperation().getInterface().getWsdlContext()
                .getSchemaTypeSystem();
            SchemaGlobalElement schemaElement = typeSystem.findElement( new QName( parentNode.getNamespaceURI(),
                parentNode.getLocalName() ) );
            if( schemaElement != null )
            {
              schemaType = schemaElement.getType();
            }
View Full Code Here

Examples of org.eclipse.jdt.core.IJavaProject.findElement()

        if (path.segmentCount() == 1) {
          return true;
        }
       
        try {
          IJavaElement element = javaProject.findElement(path);
         
          if (element instanceof ICompilationUnit) {
            ICompilationUnit compilationUnit = (ICompilationUnit) element;
            IType[] types = compilationUnit.getTypes();
           
View Full Code Here

Examples of org.erlide.engine.model.IErlModel.findElement()

        if (element instanceof ResourceNode) {
            final ResourceNode rn = (ResourceNode) element;
            final IResource r = rn.getResource();
            if (r instanceof IFile) {
                final IFile f = (IFile) r;
                final IErlElement e = model.findElement(r);
                if (e instanceof IErlModule) {
                    module = (IErlModule) e;
                }
                if (document == null) {
                    try {
View Full Code Here

Examples of org.erlide.engine.model.root.IErlElementLocator.findElement()

                // image for a CU not on the build path
            }
            return getWorkbenchImageDescriptor(file, flags);
        } else if (element instanceof IFolder) {
            final IErlElementLocator model = ErlangEngine.getInstance().getModel();
            final IErlFolder ef = (IErlFolder) model.findElement((IResource) element);
            if (ef != null && (ef.isOnSourcePath() || ef.isOnIncludePath())) {
                return getErlImageDescriptor(ef, flags);
            }
        } else if (element instanceof IAdaptable) {
            return getWorkbenchImageDescriptor((IAdaptable) element, flags);
View Full Code Here

Examples of org.fao.geonet.kernel.EditLib.findElement()

            if (at != -1) {
                attribute = ref.substring(at + 1);
                ref = ref.substring(0, at);
            }
           
            Element el = editLib.findElement(md, ref);
            if (el == null) {
                Log.error(Geonet.EDITOR, EditLib.MSG_ELEMENT_NOT_FOUND_AT_REF + ref);
                continue;
            }
           
View Full Code Here

Examples of org.openqa.selenium.By.findElement()

        assertThat(fooBar.toString(), is("FluentBy.attribute: foo = 'bar'"));

        FindsByXPathSearchContext context = mock(FindsByXPathSearchContext.class);
        WebElement we = mock(WebElement.class);
        when(context.findElementByXPath(".//*[@foo = 'bar']")).thenReturn(we);
        WebElement bar = fooBar.findElement(context);
        assertThat(bar, is(we));

        // last of ..

        By lastFooBar = FluentBy.last(fooBar);
View Full Code Here

Examples of org.openqa.selenium.SearchContext.findElement()

    }

    protected static WebElement dropProxyAndFindElement(By by, SearchContext searchContext) {
        if (searchContext instanceof GrapheneProxyInstance) {
            SearchContext unwrapped = (SearchContext) ((GrapheneProxyInstance) searchContext).unwrap();
            return unwrapped.findElement(by);
        } else {
            return searchContext.findElement(by);
        }
    }
View Full Code Here

Examples of org.openqa.selenium.WebDriver.findElement()

public class Selenium2Test extends TestCase {
    public void testFoo() throws Exception {
        WebDriver wd = new RemoteWebDriver(new URL("http://127.0.0.1:4444/wd/hub"), DesiredCapabilities.firefox());
        try {
            wd.get("http://www.yahoo.com/");
            wd.findElement(By.name("p")).sendKeys("hello world");
            wd.findElement(By.id("search-submit")).click();
//        wd.waitForPageToLoad("10000");

            assertTrue(wd.getTitle().contains("hello world"));
            assertTrue(wd.getTitle().contains("Yahoo"));
View Full Code Here
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.