In Visual regression testing, the `driver.executeScript("smartui.takeScreenshot");` method is not working in my Python script

In Visual regression testing, the driver.executeScript("smartui.takeScreenshot"); method is not working in my Python script. Is there something I am missing?

Hi Ana!

In case of Python, the syntax of executeScript method is slightly different.

It will look like below:

driver.execute_script("smartui.takeScreenshot")