Instructor
Ashish Thakur Replied on 28/11/2018Keep some delay before that click
Thanks. I used the custom wait function and it did work.
But I wonder how come waitForPageToLoad() and clickAndWait() function didn't work on Firefox and worked on Chrome. I tried printing every step inside the clickAndWait function. On chrome it printed everystep but it didn't print anything on Firefox. It seems like it didn't even move inside the function after clicking on the create button.
You can debug
Thats the best way out
Debug also worked for me. From what I can understand is that when the selenium do the click event, something stops on the website stops processing as the ads won't even load. Due to this the entry field doesn't appear. If I keep some wait the ads load properly without any issue and everything works fine.
Anyway how to close this query?
Instructor
Ashish Thakur Replied on 11/12/2018
You can use explicit wait
OR
Use thread.sleep
Or
keep on clicking in a loop till the time you find visiblity of certain element
Thread.sleep worked but the third option didn't work. That's what I mentioned in my previous replies that clickAndWait was not working.
Instructor
Ashish Thakur Replied on 11/12/2018
Ok
may be you need to add more wait
Yes, that works.