Hi All,
My test running ok against IE11 on Virtual Machine (Windows 2012 R2 Standard). A few days after, when I run my test, I get "pageObj.FindChildByXPath(...).Keys is not a function" or hanging. it happened in It works in Chrome on my VM.
My code works fine on IE9 and Chrome 43.0.2357.65 on my local machine.
I tried to increase delay time, it didn't work.
My code:
var propertyPageObj = Sys.Browser().Page("*");
PropertyPage.setElement2Variable(suiteVariableObj);
// Click "ADD" button to display "New" button for adding a new property
propertyPageObj.FindChildByXPath(suiteVariableObj.btnAddProperty).Click();
Delay(500);
propertyPageObj = Sys.Browser().Page("*");
// Click "New" button to new a property on "Properties" page
propertyPageObj.FindChildByXPath(suiteVariableObj.btnNewProperty).Click();
Delay(500);
propertyPageObj = Sys.Browser().Page("*");
// Enter "Street Number"
propertyPageObj.FindChildByXPath(suiteVariableObj.txtboxStreetNum).Keys("661");
Delay(1500);
// Enter "Street Name"
propertyPageObj.FindChildByXPath(suiteVariableObj.txtboxStreetName).Keys("Century");
Delay(1500);
// Enter and select street type "ST-St" at "Street Name" line
propertyPageObj.FindChildByXPath(suiteVariableObj.txtboxStreetType).Click();
propertyPageObj.FindChildByXPath(suiteVariableObj.txtboxStreetType).Keys("ST-St");
Delay(1000);
Does somebody get the same issue and has a solution?
Thanks,
Yabing