'I'm trying to press all the buttons in the same class in selenium Vb.net

iam trying to click in all link in a div by loop in loop

    For Each Element In driver.FindElements(By.CssSelector(".product-options-btn"))


        Element.Click()

        Thread.Sleep(3000)

I'm trying to press all the buttons they don't have properties all in one class

        For Each Element1 In driver.FindElements(By.ClassName("sicon-cancel"))
            Element1.Click()

            Thread.Sleep(3000)

        Next

photo of the site and the buttons



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source