In my project, the web application code is developed by a third party. The client does not know if ajax or other technologies are used which might load web elements at different times. We are automating the testing of the web application using Selenium Webdriver with Java, TestNg, POM. Will it be a bad practice to have explicit wait using ExpectedConditions for all the elements that we automate?
As of today (04September2022), we are running manual testing on the application to gauge which modules to automate first, and have noticed that the webpage elements (textboxes, links, buttons, dropdowns etc.) seemingly load at random times. Hence we are debating if we should use explicit wait for all the elements upfront, instead of a trial and error basis.