Relative Content

Tag Archive for c#selenium-webdriver

How to disable automatic page saving after receiving html? (Selenium)

I successfully load the page using selenium webdriver (version of nuget 4.21.0), however, after receiving the page, html files with the received content appear in the root folder of the application (in the format guid.html ). I’ve searched through all the documentation and I can’t find an option that disables this behavior.

How to disable automatic page saving after receiving html? (Selenium)

I successfully load the page using selenium webdriver (version of nuget 4.21.0), however, after receiving the page, html files with the received content appear in the root folder of the application (in the format guid.html ). I’ve searched through all the documentation and I can’t find an option that disables this behavior.

Selenium C# Nested Loop

I have an html table that displays roughly 20 true/false questions on each page. I have a loop running to randomly answer each question. Once the questions are completed on the page, a button is popped to proceed to the next page. There are probably 20 pages though. Rather than repeat the same step over and over (specflow), I would like to create a nested loop but I have not been able to get it working.

C# Selenium style=”display:none open

<div id=”aciklama67141″ style=”display:none;”> </div> In this way, there is a div with div content “style=”display:none;”. I want to turn on the display none property. Can you help me? I couldn’t find the solution c# selenium-webdriver New contributor ismail baloglu is a new contributor to this site. Take care in asking for clarification, commenting, and answering. […]

Is Element Present Method Broke

I updated my framework and this method I have used for “is element present” broke and I am not sure why?? When the element is found, no issue and it returns true. When the element is not found, instead of returning false, it throws the below error and fails the test case.

SaveAsFile method with two parameters throwing an error

While working with Selenium in C#, I encountered an issue when trying to use the SaveAsFile method with two parameters. Specifically, I wanted to pass ScreenshotImageFormat.png” as the second parameter, but I kept getting a compile-time error.

SaveAsFile method with two parameters giving me error

While working with Selenium in C#, I encountered an issue when trying to use the SaveAsFile method with two parameters. Specifically, I wanted to pass “ScreenshotImageFormat.Png” as the second parameter, but I kept getting a compile-time error.

click on i class value (C# 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(“.<bi […]