Upon launching the Selenium test, the default page that is opened is the Chrome settings

As a newcomer to the world of test automation, I am currently honing my skills with Selenium.

Having experimented with Selenium Chrome Webdriver in C#, I have encountered an issue. When executing tests, the settings page keeps opening as the default tab in the Chrome browser, while the URL opens in a second tab.

I want only the required URL to open in Chrome...

My setup involves using Selenium Chrome Driver on Windows 10 with C#. Can anyone offer assistance on how to address this problem?

Thank you.

Answer №1

Would you give this a shot?

                FirefoxOptions capabilities = new FirefoxOptions();
                options.AddArguments("--disable-notifications");
                options.AddArguments("--start-fullscreen");
                options.AddUserProfilePreference("credentials_enable_service", false);
                driver= new FirefoxDriver("path to gecko driver"), capabilities, TimeSpan.FromMinutes(5));
                driver.Navigate().GoToUrl("http://www.bing.com");

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Applying the document height to window height ratio to create a scale ranging from 1 to 100

My goal is to create a scroll bar using two divs with heights of 110px and 10px. The smaller one will be nested inside the taller one, allowing for adjustment of its margin-height from 0 to 100px while still fitting within the larger div. When I refer to ...

Verifying if the checkbox has been unselected

I'm currently attempting to send post requests to the database based on whether a checkbox is checked or unchecked. My goal is to add or delete data in the database using these post requests. I've successfully implemented the logic to add data us ...

Trouble arises when managing click events within the Material UI Menu component

I've implemented the Menu Component from Material UI as shown below - <Menu open={open} id={id} onClose={handleClose} onClick={handleClick} anchorEl={anchorEl} transformOrigin={{ horizontal: transformOriginRight, vertical: t ...

Is it possible to have an icon change color in a TableRow column when hovering over any part of that particular row?

I am currently using material-ui version 4.9.5. To illustrate my issue, I have created a simplified example here. I have a Table that is populated with basic JSON data. Each row in the table consists of an icon element along with its corresponding color a ...

Having trouble updating Vuejs array with new values

Currently, I am facing an issue with the template code for my survey builder. I am successfully receiving responses from the server, but the addAnotherQuestion value is not updating as expected. Despite trying various approaches, I have been unable to reso ...

What steps should I take to troubleshoot the issue when utilizing full HTML link paths in my links?

I have come across the recommendation to use full link paths between pages on my website for various reasons. However, I am concerned about how to debug and work on my local testing environment when all of the links are using full paths. (Manually replaci ...

Preserving the selected options in a dynamically populated dropdown list after submitting a form using php

I am attempting to preserve form values even after submitting the form. document.getElementById('start_date').value = "<?php echo $_POST['start_date'];?>"; document.getElementById('end_date').value = "<?php echo $_P ...

Choosing a span element based on the @id attribute of a neighboring input element

I am working with a label that contains multiple select option buttons, each with its own div. Inside each div is a label with an ID that I need to use for selenium automation. <label class="custom-toggle-checkbox-label"> <input type= ...

What could be causing the issue with hammer.js swiping functionality on iPhones?

Looking for assistance from those experienced with hammer.js, as I'm facing an issue with swiping/scrolling on iPhones. I have been developing a web app using 8thwall and hammer.js for swipe and scroll functionality. While testing on my Samsung Galax ...

AngularJS - Sending event to a specific controller

I am facing an issue with my page where a list of Leads each have specific actions that are represented by forms. These forms can be displayed multiple times on the same page. Each form has its own scope and controller instance. After submitting a form, an ...

Calculating the 2D transformation matrix between two triangles using JavaScript

Seeking to determine the 2D transformation matrix for converting one triangle into another. The coordinates of both triangles' points are known. Although I typically utilize Paper.js for manipulating matrices, this particular scenario is outside i ...

Avoid connecting HTML input elements with both JavaScript and Java models

I am troubleshooting an issue with my login page code. <div ng-show="!loggedIn()"> <form ng-submit="login()"> Username: <input type="text" ng-model="userName"/> Password: <input ...

Sorting arrays in JavaScript based on dynamic columns

My current JavaScript Array Sorting code gets the job done, but it feels inefficient. For example, I have an array of objects structured like this: dummyData = []; dummyData.push({ col01:"aa", col02:"ac", col03:"ab" }); dummyData.push({ col01:"ab", col02 ...

Error encountered during Angular unit testing: Unable to read the 'id' property of a null value. (Jasmine, Karma)

I am currently working on writing unit tests for a specific component in my Angular application. The component uses a currentUser variable both in the component logic and the HTML template. I have hardcoded this variable by mocking it in every test using c ...

It can be challenging to manage numerous if-else conditions in JQuery

I am having trouble with my JQuery code that checks multiple conditions. No matter what I enter, it always goes to the else condition. $(function() { $('#installment').on("keydown keyup", check); function check() { var inst = Number($( ...

Using Websockets in combination with AngularJS and Asp.net

While working on my application that uses AngularJS with Websocket, I encountered a specific issue. The WebSocket communication with the server works fine as users navigate through different pages in Angular. However, when a user decides to refresh the p ...

typescript: best practices for typing key and value parameters in the forEach loop of Object.entries()

I have a specific object with key/value pairs that I need to iterate over using the entries() method of Object followed by a forEach() method of Array. However, I'm struggling to understand how to avoid a typescript error in this situation: type objTy ...

Is there a way to use regular expressions in C# to verify specific conditions?

I am dealing with a situation like this If I input the text in the following format: 9 - Only numbers should be allowed s - Only special characters should be allowed a - Only alphabets should be allowed x - Alphanumeric characters should be allowed ...

When deploying, an error is occurring where variables and objects are becoming undefined

I've hit a roadblock while deploying my project on Vercel due to an issue with prerendering. It seems like prerendering is causing my variables/objects to be undefined, which I will later receive from users. Attached below is the screenshot of the bui ...

I am facing an issue with Angular reactive forms where the default values I set in ngOnInIt are not being reflected

Having some issues with setting default values in my Angular app using reactive forms. The defaults I set in ngOnInit are not showing up. I am also using the filter function within the map method. I am trying to select a value based on the URL and have it ...