Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

I'm involved in automation using silk test of an swing
application running in a browser. There is a window whose
name is a dynamic. i.e based on the input(eg: some
filename) the window name keeps on changing. I need to
capture the window name for every run of silk test case for
different input filenames. I'm aware of GetName() in
SilkTest, but its not working for me. Can anybody suggest
me any logic to achieve this using silktest?

Answer Posted / lakshmi v

In Silk Test there is a function called Browser.GetActive()
This function returns the title of the active window.
Whenever your dynamic window opens up make sure it is active
by closing all other browsers if any using the
Browser.closeOthers() function. Then use the getActive
function to return the window name which is your required
output.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create a new silktest project?

1097


Hi All, An newbiee to silk test tool. I wanted to write a function which checks the browser type installed in the local machine & then based on the browser type test case should run. I tried little bit writing the function : Void Func_ValidateBrowserType() Window myWin myWin = Browser.GetRealBrowser () print (myWin) Any help please.. Thanks, V

2507


What is the dom browser extension?

1205


What is multi-tagging?

1161


What is the standard flow of execution of a test case?

1105


How to create and edit a testplan?

1102


How dom browser extension identify a web application ui object?

1282


Can silktest switch browsers automatically?

1113


How to define new testplan attributes?

986


How to create group and sub group descriptions in a testplan?

1198


How load testing can be done with silk international?

1052


How to specify a browser extension to a web application?

1224


What is silktest host?

1145


In SilkTest we have a function Except Log which displays the path of the error occured in a Script.In QTP do we have any function like that?

2591


How to assign attribute values to test cases?

1160