Interview Questions

Retrieve text from disable textfield.Silk is not recognizing that disable object. How can I come to a conclusion?

SilkTest Questions and Anwsers


(Continued from previous question...)

19. Retrieve text from disable textfield.Silk is not recognizing that disable object. How can I come to a conclusion?

Retrieve text from disable textfield.Silk is not recognizing that disable object. How can I come to a conclusion? I am having a web based application. In one web page there is a radio button.Selection of that radio button open an applet window. Now if I want to take the declaration of that window, It fails to recognise the same.Silk is properly configured to recognise Java based C\S application.How to resolve such issues?


If you want to retrieve data from a disabled textfield, you should first disable the Agent option "OPT_VERIFY_ENABLED" and the you can use GetText. The steps are:
Agent.SetOptions("OPT_VERIFY_ENABLED", false)
Print(TextField.GetText())

And coming to your next question, the answer is same, disable all the Agent options. Steps:
1.In the Options menu, click on Agent menu item.
2. In Agent Options window, click on Verification tab.
3. Uncheck all the options, except the last one (verification of application ready)
4. Click OK.

(Continued on next question...)

Other Interview Questions