Selenium - what is the difference between click and clickAndWait?

python, selenium

Solution

From Selenium docs:

Many Actions can be called with the "AndWait" suffix, e.g. "clickAndWait". This suffix tells Selenium that the action will cause the browser to make a call to the server, and that Selenium should wait for a new page to load.

Problem

I am new to selenium and need some clarification on some stuff. I've tried `click` and `clickAndWait` in the IDE, and while the references stated clearly what each meant, when I export the test case to Python, it seems like both are doing the same thing here ``` driver.find_element_by_xpath("//li[@id='pa-u_8298348-bd']/a/span[2]").click() #click and wait driver.find_element_by_link_text("IMVironments").click() #click ``` Can someone tell me what is the difference here then?

Original source