josette_merhy12
10 years agoOccasional Contributor
TC 10.20 Firefox 29, object is null
i m searching for 2 objects inside a parent using find method. in chrome it is working great. but with firefox it is returning does not exist when searching for the second object.
here is an example:
function incrementNumber(valIndex, variable, obj, StepValue)
{
var counter,counterIndex;
var ObjButton,ObjButtonDecrement;
var inputValue,document, ngModelString,element,scope;
document = page.contentDocument;
ObjButton = obj.Find("class","increment_bsy" ,1000);
ObjButton.Click(10,10);
Delay(1000);
ObjButtonDecrement = obj.Find("class","decrement_bsy" ,1000);
ObjButtonDecrement.Click(10,10);
}
in FireFox ObjButtonDecrement is always does not exist object as for Chrome it is working fine.
obj is null when ObjButton is clicked.
can anyone help me understand what is wrong with this code on firefox?
here is an example:
function incrementNumber(valIndex, variable, obj, StepValue)
{
var counter,counterIndex;
var ObjButton,ObjButtonDecrement;
var inputValue,document, ngModelString,element,scope;
document = page.contentDocument;
ObjButton = obj.Find("class","increment_bsy" ,1000);
ObjButton.Click(10,10);
Delay(1000);
ObjButtonDecrement = obj.Find("class","decrement_bsy" ,1000);
ObjButtonDecrement.Click(10,10);
}
in FireFox ObjButtonDecrement is always does not exist object as for Chrome it is working fine.
obj is null when ObjButton is clicked.
can anyone help me understand what is wrong with this code on firefox?