Is there an automation method, via Selenium with Java, that can verify if a carousel rotates after clicking it?
I highlighted the Right arrow as Red box which should rotate after clicking it.
I've written an article about the same topic, with examples in Java
Hope that helps.
I would verify that when the element is clicked, that the other elements change. So specifically look at the text that is being changed on the page. Something like this would work for a verification:
Note that this is C# code that I use for some quick validations, and something with more complexity can also be written.