SilkTest Question 38: How to read value from read only text field?

Imagine that the text field has read only status or disabled. The Silk Test returns the unexpected error message "*** Error: Window '[HtmlTextField]Estimated:' is not enabled". Is it possible to obtain text field value?

As usual Lead QA engineer in automation can get value with Agent.SetOption features of SilkTest. The code to retrieve value of 'VMware' text field located on 'WinRunner' page of application under test posted below:

Agent.SetOption (OPT_VERIFY_ENABLED, FALSE)
Winrunner.VMware.GetText()
Agent.SetOption (OPT_VERIFY_ENABLED, TRUE)

1 comment:

sbachina said...

Hi All,

I am new to silk test, i have query regarding reading a value from disabled text field using silk.

SilkTest interview questions for QA Testers