Forum Discussion

vbarros's avatar
vbarros
Occasional Contributor
12 years ago

Item pop-up TestComplete 9

<div> I am making a test I need to fill in a field. This field is displayed in a pop up window that dims the screen down, I do not know if this is why but TestComplete can not find this field.</div> <div> Can anyone help me, I&#39;m using version 9<br /> <br /> 

1 Reply

  • jose_pita's avatar
    jose_pita
    Super Contributor
    Hi Victor,



    Have you seen if the path to the object is always the same or constantly chaging?



    Try this peace of code to see if you can find the object in question, if you do is probably a problem with your name mapping properties of the object. You can use this code to do anything you need on the object, just change the "click()" for something else you need.




    function clicarNoComponente(propriedade,texto)




       // Using the Find method 


       var myObj = Sys.Browser("iexplore").Page("*").NativeWebObject.Find(propriedade,texto);


       // Checks if the button exists 


       if (myObj.Exists)


       { 


          myObj.Click();   


          waitForLoading();  


       }


       else


         Log.Error("Can't find the object","");


    }



    Espero ter ajudado.