When a selenium test script executes unusually slow, what are the possible reasons which could be making script performace slow ?
What steps should a tester use to analyse and debug the problem?
When a selenium test script executes unusually slow, what are the possible reasons which could be making script performace slow ?
What steps should a tester use to analyse and debug the problem?
If the selenium tests/objects are embedded into a script in another language (eg java or python), make sure that the underlying code in those scripts aren't slowing you down. For example, external process/function calls or excessive string concatenation, which both could be common in testing scripts, can be slow things down considerably.
too much use of xpath will make the test run slow. so this should be the last resort. we should always try to follow the selenium object identification like use id then name and link before using xpath or csspath.
possible thing is to divide your test methods and your web element objects are in separate classes,it will give you good performance,Follow page object design.