How to add a field that will open a new browser when entered?
Question ID: 107048
0
0

In the test case module, we need a new field added:

* Automation Code Location – Free form string field which can hold a URL and open that URL when entered

Marked as spam
Posted by (Questions: 204, Answers: 2)
Asked on August 2, 2016 6:10 pm
32 views
Answers (1)
0
Private answer

Go Dawgs,

Here is how you can implement a new URL field:

Please add the following to your Test Plan Workflow customization:

Sub Test_FieldChange (FieldName)

If Test_Fields(''TS_USER_05'').Value <> '''' Then

Set objIE = CreateObject(''InternetExplorer.Application'')
objIE.Visible = 1
objIE.Navigate Test_Fields(''TS_USER_05'').Value
End If

End Sub

Please note that my ''TS_USER_05'' will need to be replaced with the field you created to hold the URL.
Also note that there is no checking done to verify that the URL is a valid website address. This would require much more coding.
Also, the URL field needs to be a Text field not an HTML field.

I hope this helps.

Marked as spam
Posted by (Questions: 1, Answers: 216)
Answered on August 2, 2016 6:20 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top