Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/323.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 自动web表单填充中Selenium工具的替换_Java_Selenium_Selenium Webdriver_Selenium Rc_Selenium Ide - Fatal编程技术网

Java 自动web表单填充中Selenium工具的替换

Java 自动web表单填充中Selenium工具的替换,java,selenium,selenium-webdriver,selenium-rc,selenium-ide,Java,Selenium,Selenium Webdriver,Selenium Rc,Selenium Ide,我正在使用Selenium进行自动web表单填充,我正在寻找Selenium的替代品。请给我推荐硒的替代品 下面是selenium的代码 import com.thoughtworks.selenium.*; import org.junit.After; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; import java.util.regex.Pattern; import

我正在使用Selenium进行自动web表单填充,我正在寻找Selenium的替代品。请给我推荐硒的替代品

下面是selenium的代码

import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
import java.util.regex.Pattern;
import org.openqa.selenium.By;


public class Googletest {
private Selenium selenium;

@Before
public void setUp() throws Exception {
selenium = new DefaultSelenium("localhost", 4444, "*chrome", "https://www.gmail.com/");
    selenium.start();
}

@Test
public void testGoogletest() throws Exception {
selenium.open("/");
selenium.type("//div[@class='email-div']/input", "rashmiujire13@gmail.com");
selenium.type("//div[@class='passwd-div']/input", "xxxxxx");


selenium.click("signIn");
}

@After
public void tearDown() throws Exception {
selenium.stop();
}
}   


Selenium-RC已被弃用,并且没有进一步的开发。

我知道你已经失败了,但不要在这里索要代码。。没有人会为你编码。对不起,我编辑了我的问题,实际上我需要替代工具,而不是seleniumI使用selenium,对我来说很好。您在使用selenium时遇到了什么问题?没有任何问题,但我想知道新工具如果selenium没有问题,您为什么要寻找替代品?没有坏的东西不要修。另一方面,您应该使用SeleniumWebDriver,而不是SeleniumRC。