13 years ago
Page.NativeWebObject.Find() - 15 seconds to find an object
Hello,
I'm in the process of writing a script that will help us complete a highly repetitive task.
My problem is that, when using the Page.NativeWebObject.Find() method some objects are taking over 15 seconds to identify the particular item I am specifying in the parameters.
I understand that factors such as page size, location of the desired item in the DOM, hardware of the machine running the test, etc. can affect the speed of finding an object, but I though this was quite excessive.
Do other users find that objects can take this long?
Do other users have other best practices we can employ?
I've attached the particular script for your study. Things slow down from lines 22 onwards. The size of source of the page that contain the desried element is around 722KB.
Thanks,
Chris.
I'm in the process of writing a script that will help us complete a highly repetitive task.
My problem is that, when using the Page.NativeWebObject.Find() method some objects are taking over 15 seconds to identify the particular item I am specifying in the parameters.
I understand that factors such as page size, location of the desired item in the DOM, hardware of the machine running the test, etc. can affect the speed of finding an object, but I though this was quite excessive.
Do other users find that objects can take this long?
Do other users have other best practices we can employ?
I've attached the particular script for your study. Things slow down from lines 22 onwards. The size of source of the page that contain the desried element is around 722KB.
Thanks,
Chris.