Contributions
Re: Waiting for XPath or CSS elements(TimeOut)
HiTanyaYatskovska In Javascript i have written function for dynamic xpath which accept text as parameterized. For this script i have to wait until visibility of xpath found in page. Hence provide solution for waitTime with example. Note: Delay keyword is not encourged in my Organisation.1.3KViews0likes1CommentWaiting for XPath or CSS elements(TimeOut)
Hi All, In Javascript for xpath Locators how can we provide implicit waitTime . Below is the script designed ,can anyone help for below code. browser = Sys.Browser(*); page = browser.Page('myURL'); SignOut_Button = page.Buttons.FindChildByXPath('/*[@id='signout']/div[1]') if (SignOut_Button.Exists) { SignOut_Button.Click(); } Thanks Vijaysimha1.3KViews0likes4CommentsJava collections
Hello All, Please guide us on how to use Java library in TestComplete.I have to write a script for ArrayList in js file is it possible?Or else how to write it. public static void main(String[] args) throws IOException { int n = 5; //declaring ArrayList with initial size n ArrayList<Integer> arrli = new ArrayList<Integer>(n); // Appending the new element at the end of the list for (int i=1; i<=n; i++) arrli.add(i); System.out.println(arrli); arrli.remove(3); System.out.println(arrli); for (int i=0; i<arrli.size(); i++) System.out.print(arrli.get(i)+" "); } }762Views0likes1Comment