Contributions
Re: 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));2.1KViews0likes0CommentsRe: When i send keys and add a click inside the Keys it then passes "Undefined"
Thanks for the feedback, I'm trying toclick on the field and then do a key entry. I tried the suggested solution but after thea.Click(); the script looses focus and the pop-up list would disappear again.2.1KViews0likes2CommentsRe: When i send keys and add a click inside the Keys it then passes "Undefined"
Thanks for the feedback, I'm trying toclick on the field and then do a key entry. I tried the suggested solution but after thea.Click(); the script looses focus and the pop-up list would disappear again.2.1KViews0likes0CommentsWhen 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(); }Solved2.2KViews0likes5Commentswaiting 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 asTextInput than ComboBox2.5KViews0likes6CommentsRe: 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.2.2KViews0likes1CommentRe: Hi SmartBear Team,How do i convert a string from property file to an Object? eval is not helping.
HiTanya, 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");2.2KViews0likes0Comments