All Questions
20 questions
0
votes
2
answers
173
views
C# - taking screenshots of browser while windows is locked (windows.forms)
I am making a program in windows.forms, that is controling a browser and frequently takes screenshots of the browser (to check in what state the browser is at different times). However there has been ...
1
vote
1
answer
780
views
Selenium C# WebDriver not resizing browser window correctly
I have to make visual tests for test automation purposes, with window browser size being (x=1366,y=668). When I'm running these tests in a headless mode, everything works fine and the window is as ...
4
votes
2
answers
531
views
Opening Firefox using selenium Firefox driver binding with particular IP using ForceBindIP
I have following code.
IWebDriver webDriver = null;
System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo startinfo = new System.Diagnostics....
0
votes
1
answer
3k
views
Use Selenium to attach to a manually opened Browser
I know, that such a question is already asked here before, but it is 4 years old and not quite helpful.
So, what i want to do is simple, i want my selenium (running in WPF and .Net 5.0 in c#) so ...
0
votes
1
answer
201
views
How to setup browser-simulation on an Azure Hosted website
I'd like to check that I have accounted for all my options, before trying to decided which route to take.
I have currently deployed a small website to a free-tier Azure AppService (.NET Core + SQL ...
1
vote
0
answers
138
views
Using Same browser type from a single file for multiple projects in Selenium C#
I am trying to pass the Browser Type for 45 projects from a single place using Parallel.RunSettings file and adding this file under Test Settings in Visual Studio.
But the value is not being read with ...
0
votes
2
answers
2k
views
C# Headless browser without needing a .exe
I have been looking at using a headless browser with C# code. Headless Chrome seems like the way to go as Phantom JS is on its way down. When I install either of these to work with selenium, an ...
0
votes
2
answers
2k
views
Firefox Browser in private mode not working - Selenium C#
I'm currently using selenium 3.8 with C#. I tried 2 script's segments below but it's not working.
[-----1----]
FirefoxProfile firefoxProfile = new FirefoxProfile();
firefoxProfile.SetPreference("...
0
votes
1
answer
581
views
Selenium, C# Logtype NullReference
With this code
driver.Manage().Logs.GetLog(LogType.Browser).ToList()
I'm getting NullReference exception,
I want to get the logs of the FireFox Browser
0
votes
1
answer
2k
views
Attach an existing web browser to automate using Selenium in C#
Upon doing this code:
using OpenQA.Selenium.Remote;
...
var driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub"), DesiredCapabilities.Firefox());
// To automate...
// driver....
-1
votes
1
answer
392
views
Selenium Click a Button Without ClassName/ID
I am developing a Browser Automation, but I can't click a button. I have tried this procedure:
webDriver.FindElement(By.XPath("//*[@id='uploadForm: fileup']/div[1]/button[1]")).Click();
webDriver....
1
vote
1
answer
612
views
C# Windows Forms Interacting With Web Browser
I have developed a Windows Form application in C# that interacts with a phone system.
I would like to add click to dial functionality to the application.
When I click on a telephone number in a web ...
0
votes
2
answers
6k
views
C# - How to detect browser type
I'm running Selenium with C# for my automation testing on multiple browsers (IE, FF, Chrome) and there is one part of my test that passes for Chrome but not Firefox.
Is there a way to detect the ...
1
vote
0
answers
901
views
Command line server for the IE WebDriver has stopped working while running selenium webdriver automation in c#
I read few post regarding issue -Command line server for the IE WebDriver has stopped working but did not find any resolution yet.
I Tried below ways:
1. Resetting IE Setting.
2. Remove unwanted ...
0
votes
2
answers
3k
views
C# Selenium WebDriver - Is it possible to check if a certain webpage is already opened in the browser?
I was wondering if it is possible to check with C# and selenium web driver if a certain webpage is opened in the default browser?
My idea is to link certain ticketing system's time tracker with toggl. ...