How to Resolve Issue With Size() Function in Selenium for ChromeDriver

Spread the love

Issue Details:
In selenium execution out of ten runs six run it gives
correct result in Firefox and Internet Explorer.
But the same failed in Chrome. Always gives wrong
count when element.Size() function is triggered.


How to Solve:

1. First let us check if chrome is rendering the xpath correctly. Check the xpath.

2. Secondly,let us check if application is taking longer time to load in chrome. Use some wait time.

Spread the love
READ  Why Xpath Is Slower in Browsers Specially In Internet Explorer?
I am the founder and owner of the blog -, always love to share knowledge on test automation,tools,techniques and tips.I am a passionate coder of Java and VBScript.I also publish articles on Travel ideas and great honeymoon destinations.Apart from these, I am a gear-head,love to drive across India. I have shared lots of articles here on How to travel several parts of India.Customization of cars aka car modification is my another hobby.Get in touch with me on


Please enter your comment!
Please enter your name here