khoffman90
12 years agoContributor
Find method help
Hi
In my website i have a list of documents with checkbox options next to them. I know the name of the file i'm looking for but I'm not sure of its location as its dynamic. I'm trying to use the find method to find the RowIndex of the file which i can then use to click the correct checkbox.
Heres what i've got so far:
function findFolder(){
var propname = new Array("ObjectType","contentType");
var propvalue = new Array("Cell","FolderA");
var findy
findy = Aliases.browser.Find(propname,propvalue,20000);
if (findy.Exists == true){
Log.Message(findy.RowIndex);
Log.Message(findy.Name);
Log.Message(findy.FullName);
Log.Message("found it");}
if (findy.Exists == false){
Log.Message("did not find");}
}
With this code its always false but using the object spy I know its there. Something must be wrong. Can anyone help?
In my website i have a list of documents with checkbox options next to them. I know the name of the file i'm looking for but I'm not sure of its location as its dynamic. I'm trying to use the find method to find the RowIndex of the file which i can then use to click the correct checkbox.
Heres what i've got so far:
function findFolder(){
var propname = new Array("ObjectType","contentType");
var propvalue = new Array("Cell","FolderA");
var findy
findy = Aliases.browser.Find(propname,propvalue,20000);
if (findy.Exists == true){
Log.Message(findy.RowIndex);
Log.Message(findy.Name);
Log.Message(findy.FullName);
Log.Message("found it");}
if (findy.Exists == false){
Log.Message("did not find");}
}
With this code its always false but using the object spy I know its there. Something must be wrong. Can anyone help?