click on i class value (Csharp Selenium)
<a href=”javascript:void(0);” onclick=”$.post(‘dinamik/sorularList.php’, {‘page’ : 5}, function(data){ $(‘#dataContainer’).html(data); }); return false;”><i class=”bi bi-arrow-right-square-fill”></i></a> <i class=”bi bi-arrow-right-square-fill”></i> That’s how I have value. Here I need to click on “bi bi-arrow-right-square-fill”. More precisely, I need to click on this value. When I get the xpath, I can’t click it. I finally tried this IWebElement elementa = driver.FindElement(By.CssSelector(“.”)); […]
C# Selenium WebDriver: how to create a listener to catch an event?
I have a project with Selenium WebDriver and I need to catch an event when a certain web element shows up in the web page. It is like a button click from user in a windows forms app while the programm to be doing its stuff, but it program reacts to pressing the button.