ContributionsMost RecentMost LikesSolutionsRe: When i send keys and add a click inside the Keys it then passes "Undefined" I found a solution, created a new function to my click that returns an empty string. Works like a charm Thanks. function myButtonClick(a) { a.Click(); return(""); } b.Keys(myButtonClick(a) + aqString.Trim(tempPathName, aqString.stAll)); Re: When i send keys and add a click inside the Keys it then passes "Undefined" Thanks for the feedback, I'm trying to click on the field and then do a key entry. I tried the suggested solution but after the a.Click(); the script looses focus and the pop-up list would disappear again. Re: When i send keys and add a click inside the Keys it then passes "Undefined" Thanks for the feedback, I'm trying to click on the field and then do a key entry. I tried the suggested solution but after the a.Click(); the script looses focus and the pop-up list would disappear again. When i send keys and add a click inside the Keys it then passes "Undefined" When i send keys and add a click inside the Keys it then passes "Undefined" plus the correct data to the dropdown Below is my code, see attached for dropdown layout, even when i separate the function calls, it clicks the dropdown and by the time it gets to the second line the pop up list disappears. a.Click(); b.Keys(aqString.Trim(tempPathName, aqString.stAll)); b.Keys("[Tab]"); var PathName = eval(genericPath); var tempPathName = context1.get(dataName); var objNames = objName; if(aqString.GetLength(tempPathName) != null) { b = PathName.PwcAutoComplete(objNames).TextInput(0); a = PathName.PwcAutoComplete(objNames).Button(0); if((b.Exists) && (b.Enabled == true)) { var fieldContent = getInputValue(b); b.Keys(a.Click() + aqString.Trim(tempPathName, aqString.stAll)); b.Keys("[Tab]"); genCheckAlertFormPWC(); } } else { Log.Warning("The Supplied data is not valid for the field, please check the data and try again."); aqUtils.Beep(); } SolvedRe: waiting until the control is activated when sending keys I resorted to recording the interaction then use the code to my script. Its working better in that way. Re: waiting until the control is activated when sending keys Hi, .Keys("[Enter]") also triggers the "waiting until the control is activated", .SetText() is not part of the actions listed for that control. Re: waiting until the control is activated when sending keys Hi Robert, I did that, funny enough the click is Instant but moving to the next line it still takes time to enter the data waiting until the control is activated when sending keys var bankName = genIdentPath; var tempbankName = context1.get("bankName"); if((aqString.GetLength(tempbankName) != null)) { b = bankName.PwcAutoComplete("p_bank_codeCoB").TextInput(0); if(b.Exists) { b.Keys(tempbankName); } } else { Log.Message(""); } Example 2 //select branch name var branchName = genIdentPath; var tempbranchName = context1.get("branchName"); if((aqString.GetLength(tempbranchName) != null)) { branchName.PwcAutoComplete("p_branch_codeCoB").TextInput(0).Keys(tempbranchName); } else { Log.Message(""); } Execution stops and spend 10-15 seconds with the following message "waiting until the control is activated" This Controls are picked up as TextInput than ComboBox Re: Hi SmartBear Team,How do i convert a string from property file to an Object? eval is not helping. Hi Shankar, The following code will work if i add the full name locally, Reason i'm trying to read the path from the property file is to avoid having a long string in my code, rather to store the long string on my property and just call it when i need it. Re: Hi SmartBear Team,How do i convert a string from property file to an Object? eval is not helping. Hi Tanya, The following is generic to all the buttons, so every time i want to click a button i will call the "genericAuthButton" and assign it to a local value Sys.Browser("iexplore").Page(Project.Variables.pPage).Object("app").PowerCardV3_1("app").HDividedBox("hdividedbox1").CustomTitleWindow("home").P7_autho_period(0).Form(0).Canvas("IDENTIFICATION");