English 中文(简体)
消费例外 rror: Element id=fname
原标题:Selenium Exception Error: Element id=fname not found

缩略语 当我使用Junnit的剪辑时。 这表明我有错误的Element id=没有发现姓名。

a. 包裹。

进口 com。

进口java.util.regex.Pattern;

公立班级部门

public void setUp() throws Exception {
    setUp("http://192.168.1.146/fsit-mis/index.php?route=common/login", "*chrome");
iii
public void testMsFsitRegistration() throws Exception {
    selenium.open("/fsit-mis/index.php?route=common/login");
    selenium.type("name=username", "admin");
    selenium.type("name=password", "admin");
    selenium.click("css=span.button_middle");
    Thread.sleep(5000);
    selenium.useXpathLibrary("xpath=(//a[contains(text(), Employee Registration )])[2]");
    selenium.open("fsit-mis/index.php?route=employee/emp_registration");
    Thread.sleep(5000);
    selenium.waitForPageToLoad("30000");
    selenium.type("id=fname", "Shiraz");
    selenium.type("id=lname", "A Ansari");
    selenium.type("id=ecode", "FSIT-125");
    selenium.type("id=uname", "shiraz");
    selenium.type("id=password", "shiraz");
    selenium.type("id=confirm", "shiraz");
    selenium.type("id=email", "[email protected]");
    selenium.select("id=status", "label=ACTIVE");
    selenium.select("id=usrGroup", "label=Fortune Soft");
    selenium.click("xpath=(//input[@name= gender ])[2]");
    Thread.sleep(5000);
    selenium.type("id=mobile", "8088762599");
    selenium.click("id=doj");
    Thread.sleep(5000);
    selenium.click("link=1");
    Thread.sleep(5000);
    selenium.click("id=dob");
    Thread.sleep(5000);
    selenium.click("link=31");
    Thread.sleep(5000);
    selenium.select("id=designation", "label=Test Engineer");
    selenium.click("css=option[value="265"]");
    Thread.sleep(5000);
    selenium.select("id=department", "label=Software Testing");
    selenium.click("id=insert");
    Thread.sleep(5000);
    selenium.waitForPageToLoad("30000");
    selenium.type("id=mobile", "8088762598");
    selenium.click("id=insert");
    Thread.sleep(5000);
    assertEquals("Password Contain Atleast 5 element", selenium.getAlert());
    selenium.click("id=password");
    Thread.sleep(5000);
    selenium.type("id=password", "shiraz");
    selenium.type("id=confirm", "shiraz");
    selenium.click("id=insert");
    Thread.sleep(5000);
    selenium.waitForPageToLoad("30000");
iii

iii

请尽快帮助我。

问题回答

删除所有“条形”栏目。 加入:http://www.un.org/french/sc/ctc





相关问题
In Eclipse, why doesn t "Show In" appear for non-Java files?

If I have a *java file open, I can right click on the source, scroll down to "Show In (Alt-Shift-W)", and select Navigator. If I have an *xml, *jsp, or pretty much anything besides a Java source ...

Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable s value. Instead, hover behaves as if I were in normal Java perspective: alt text http://...

Eclipse smart quotes - like in Textmate

Happy Friday — Does anyone know if eclipse has the notion of smart quotes like Textmate. The way it works is to select some words and quote them by simply hitting the " key? I m a newbie here so be ...

Indentation guide for the eclipse editor

Is there a setting or plugin for eclipse that can show indentation guides in the editor? Something like the Codekana plugin for visual studio (not so fancy is also OK). Important that it works with ...

Adding jar from Eclipse plugin runtime tab

I want to add .jar files for plugin from the Runtime tab of manifest file. When I use the Add... button, I can see only sub-directories of the plugin project. So if I want to add same .jar file to ...

How to copy multiple projects into single folder in eclipse

I have two projects, Project1 and Project2. Now i want to copy this projects into eclipse workspace but i want these projects to be in a single folder like below. Eclipse Workspace -> Project -> ...

Java: Finding out what is using all the memory

I have a java application that runs out of memory, but I have no idea which code is allocating the memory. Is there an application with which I can check this? I use Eclipse.

热门标签