Hi

Remove specific classes using c# in selenium automation

 

you can remove the overlay and overlaySet class using JavaScript through Selenium



IJavaScriptExecutor js = (IJavaScriptExecutor)driver;


js.ExecuteScript(@"

    var el = document.getElementById('filtersPanel');

    if(el){

        el.classList.remove('overlay');

        el.classList.remove('overlaySet');

    }

");

Previous
Next Post »