Update selenium tests with wait command remover for loops when possible and use condition with elements instead of static text