English 中文(简体)
浮标指挥器没有工作
原标题:Click command doesn t work on a element

http://www.dhtmlx.com/docs/products/dhtmlxToolbar/samples/01_init/08_events.html” rel=“nofollow”>web application。

在网页上,你可以看到一个包含一些纽芬兰语的工具棒。 如果你点击其中的任何ton子,就会把一个 log子写入 log。

问题在于,我无法利用“塞伦ium”系统记录这一行为。 民主选举学会成立指挥机构,但当我执行指挥时,没有发生。 甚至没有错误。

问题是什么?

问题回答

以缓慢速度勾销你的文字

用于确定诸如

clickAt  | //div[text()= New ]

点击 新纽芬兰

我不知道这将有助于我,但肯定会帮助我。

如果有的话,你必须打字,然后点点击任何内容或内容。

There are two ways First use "sendKeys" to type then "click" the required element will work. For Eg In flipkart.com "type" doesn t work but "sendKeys" does

Second is Use "type" then press enter instead of click using "sendKeys" in target have the field that you were typing and in value must have "${KEY_ENTER}"

Eg will help you better First Method: The First Method

Second Method: The Second Method

两人都为我幸运地工作

或许 se开始得太快。 我猜测,你重新使用这一部件,为所有县生成了一台超文本。 如果文字开始太早,则可能尚未产生。 script的操作速度较慢。

此外,我认为 se利用XPath进入该网页的超文本部分。 您是否确信, se的文字指的是正确的超文本。 你们可以检查一下 se(XML)的文字,并看XPath的挑选人对纽芬兰的用途。

也可以是, se可能无法在无法点击的目标上点击事件(纽芬兰是四州),但我认为情况并非如此。 你可以尝试。

你们是否把 im点击倒了吗? E.g:

//img[contains(@src,  paste )]

当你在Selenium IDE上点击Find时,它是否实际强调了该网页上的东西?

当javascript把物品上装到网页时,电离层识别器在记录时是完美的,因此可能需要人工协助。

你们是否试图在试图点击该元素之前就坐下来? 我可能建议插入等待总统指挥,如等待完成。 Obj在试图点击之前。

这里是全面的工作守则:

package riponalwasim.selenium.webdriver.stackoverflow;

import java.util.concurrent.TimeUnit;
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

public class CutCopyPaste {
    WebDriver driver;
    String baseUrl;
    @BeforeClass
    public void setUp() throws Exception {
        baseUrl = "http://www.dhtmlx.com/docs/products/dhtmlxToolbar/samples/01_init/08_events.html";
        driver = new FirefoxDriver();
        driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
        driver.get(baseUrl);
    }

    @Test
    public void testCutCopyPaste() throws Exception {
        driver.findElement(By.xpath("//div[text()= New ]")).click();
        driver.findElement(By.xpath("//div[@id= toolbarObj ]/div[5]/div[11]/div")).click();
        driver.findElement(By.xpath("//div[@id= toolbarObj ]/div[5]/div[12]/div")).click();
        driver.findElement(By.xpath("//div[@id= toolbarObj ]/div[5]/div[13]/div")).click();
    }

    @AfterClass
    public void tearDown() throws Exception {
        driver.quit();
    }
}

它将花1米以上时间从事 j类工作。 因此,仅加上1 000名士兵。





相关问题
How to record popup windows with selenium IDE

While recording through Selenium IDE, When a pop up window opens it is not getting recorded. "At the time of executing an error message is displayed.Please help me out.

Problems with Error: There was an unexpected Confirmation!

I am trying to delete a user from a table. At first I was getting a timeout error but used the BeatnicClick() as described here: Selenium IDE click() timeout That solved the timeout error but I m ...

How to create nested test suites for Selenium IDE?

I need to create a nested test suite in Selenium that will run in the Selenium IDE or the Selenium TestRunner. This is basically the structure that I m trying to achieve: MasterTestSuite.html - ...

Selenium-Flex API sample problem

I m trying the sample demo of selenium flex API. After following the instructions on the main page for compiling the project with sfpi.swc and taking the generated selben.swf in bin directory and ...

Selenium Automation

Is there any way in Selenium ide, so that we get list and handlers for all controls provided on any page? So if we get that we can test that one by one using RC and it ll greatly helpful when there ...

热门标签