Examples of click()


Examples of com.google.gwt.user.client.ui.Button.click()

    HorizontalPanel buttonPanel = new HorizontalPanel();
    reAnalyzeButton = new Button(GuiFactory.strings.reAnalyzeRequest());
    reAnalyzeButton.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {      
        Button startAnalyzeButton = ReferenceManager.getStartAnalyzeButton(requestString);
        startAnalyzeButton.click();
      }     
    });
    buttonPanel.add(reAnalyzeButton);   
    buttonPanel.add(new HTML(" "));
   
View Full Code Here

Examples of com.meterware.httpunit.WebLink.click()

        LOGGER.debug("webURI: "+webURI);

        WebLink link = response.getLinkWithID("service-provider-1-id");
        assertNotNull("Cannot reach link with id: service-provider-1-id", link);

        response = link.click();
        assertTrue("Not properly redirected to sp-post1.war", response.getText().contains("Welcome to sp-post1.war"));
    }
}

View Full Code Here

Examples of com.ponysdk.ui.server.basic.PButton.click()

                register(close1);
            }
        });

        final WebElement close1 = findElementById("close1");
        close1.click();

        // check that we received close event
        final PCloseEvent e1 = eventsListener.poll();
        Assert.assertNotNull(e1);
    }
View Full Code Here

Examples of com.ponysdk.ui.server.basic.PLabel.click()

        Assert.assertEquals("tab 2", tabBarElements.get(3).getText());

        Assert.assertEquals(null, ptabPanel1.getSelectedItemIndex());

        final WebElement tab2Label = findElementById("tab2Label");
        tab2Label.click();

        final PBeforeSelectionEvent<Integer> s0 = eventsListener.poll();
        Assert.assertEquals(new Integer(2), s0.getSelectedItem());

        final PSelectionEvent<Integer> s1 = eventsListener.poll();
View Full Code Here

Examples of com.thoughtworks.selenium.DefaultSelenium.click()

       
        DefaultSelenium s = new DefaultSelenium( "localhost", seleniumPort, browser, serverUrl );
        s.start(  );
        s.open( "index.html" );
        s.type( "who", "foo" );
        s.click( "send-btn" );
        // wait a bit ajax response
        Thread.sleep( 1000 );
        String text = s.getText( "response" );
        assertEquals( "Hello foo", text );
View Full Code Here

Examples of com.thoughtworks.selenium.Selenium.click()

    {
        Selenium selenium = AbstractSeleniumTest.getSelenium();
        String locator = "link=Show/hide Stack Trace";
        if ( selenium.isElementPresent( locator ) )
        {
            selenium.click( locator );
        }

        SimpleDateFormat sdf = new SimpleDateFormat( "yyyy.MM.dd-HH_mm_ss" );
        String time = sdf.format( new Date() );
        File targetPath = new File( "target", "screenshots" );
View Full Code Here

Examples of com.vaadin.testbench.TestBenchElement.click()

    @Test
    public void testWindowIsNotScrolled() throws IOException {
        openTestURL();

        TestBenchElement cell = $(TableElement.class).first().getCell(3, 0);
        cell.click();

        TestBenchElement button = $(ButtonElement.class).first();
        button.focus();

        int buttonLocation = button.getLocation().getY();
View Full Code Here

Examples of com.vaadin.testbench.elements.ButtonElement.click()

            InterruptedException {
        openTestURL();

        ButtonElement decreaseSize = $(ButtonElement.class).caption(
                "Decrease size").first();
        decreaseSize.click(); // decreasing container size from 50 to 40
        decreaseSize.click(); // decreasing container size from 40 to 30

        TableElement table = $(TableElement.class).first();
        // TableElement scroll not working properly, so we need to do this.
        // http://dev.vaadin.com/ticket/13826
View Full Code Here

Examples of com.vaadin.testbench.elements.CheckBoxElement.click()

        }, 10);

        int rowLocation = row.getLocation().getY();

        // use click x,y with non-zero offset to actually toggle the checkbox. (#13763)
        checkbox.click(5, 5);
        int newRowLocation = row.getLocation().getY();

        assertThat(newRowLocation, is(rowLocation));

    }
View Full Code Here

Examples of com.vaadin.testbench.elements.ComboBoxElement.click()

                isElementPresent(By.className("gwt-MenuItem")));
    }

    private void openPopup() {
        ComboBoxElement combobox = $(ComboBoxElement.class).first();
        combobox.click();
        combobox.openPopup();
        combobox.focus();

        Actions actions = new Actions(getDriver());
        actions.moveToElement(
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.