Question

It takes 4 sec to execute. Is it normal? I'm developing a search method, that crawls trough the element tree, but in each iteration when I call an element's elements() method, it holds for 4 sec. Having 15 nodes in the tree, it takes a minute! Any idea on how to find an element?

Était-ce utile?

La solution

Use the methods on UIATarget to decrease the default timeout (5 seconds), for example pushTimeout(0.5).

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top