Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Unable to use TestObject.find method for setting the password field and also clicking the submit button

Hello All,

I am using RFT 8.2 and the IE version is 8.
I have a simple HTML Form application which has a Username,Password and Submit field.

I am using the following coding mechasim to set the value of the username and password field and then click on the Submit button.

TestObject[] uname =find(atDescendant(".id","un",".name","your_name"));
TextGuiTestObject txtuser = (TextGuiTestObject)uname[0];
txtuser.setText("user");
txtuser.unregister();

TestObject[] pwd =find(atDescendant(".id","pwd",".name","your_pwd"));
TextGuiTestObject txtpwd = (TextGuiTestObject)pwd[0];
txtpwd.setText("user1");
txtpwd.unregister();

TestObject[] submit = null;
GuiTestObject got = null;
submit =find(atDescendant(".name","submit"));
got = (GuiTestObject)submit[0];
got.click();
got.unregister();

Does anybody let me know where I am going wrong please since I am unable to set the password field and also not able to click on the submit button.

0 votes



One answer

Permanent link
For pure RFT question, please use RFT developerWorks forum:

https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000000322

Thanks

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Feb 02 '15, 10:34 a.m.

Question was seen: 4,546 times

Last updated: Feb 03 '15, 5:22 a.m.

Confirmation Cancel Confirm