Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 14, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 14, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 14, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 14, 2025

      I test a lot of AI coding tools, and this stunning new OpenAI release just saved me days of work

      May 14, 2025

      How to use your Android phone as a webcam when your laptop’s default won’t cut it

      May 14, 2025

      The 5 most customizable Linux desktop environments – when you want it your way

      May 14, 2025

      Gen AI use at work saps our motivation even as it boosts productivity, new research shows

      May 14, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Strategic Cloud Partner: Key to Business Success, Not Just Tech

      May 14, 2025
      Recent

      Strategic Cloud Partner: Key to Business Success, Not Just Tech

      May 14, 2025

      Perficient’s “What If? So What?” Podcast Wins Gold at the 2025 Hermes Creative Awards

      May 14, 2025

      PIM for Azure Resources

      May 14, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Windows 11 24H2’s Settings now bundles FAQs section to tell you more about your system

      May 14, 2025
      Recent

      Windows 11 24H2’s Settings now bundles FAQs section to tell you more about your system

      May 14, 2025

      You can now share an app/browser window with Copilot Vision to help you with different tasks

      May 14, 2025

      Microsoft will gradually retire SharePoint Alerts over the next two years

      May 14, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Running Selenium not under a Testing Framework

    Running Selenium not under a Testing Framework

    July 26, 2024

    I’ve been using Selenium for a while but with a slightly different scope (actually constraints). Instead of running a test for a particular site, I’m interested for instance in filling in a web form from a third party site and get some result, for instance downloading a file, to ensure its quality. So, I’m mainly interested in using Selenium to interact with a browser. So far, so good. I’ve been able to achieve what I wanted.

    So, as I’m not interested in “testing” using a Unit Testing Framework like MSTest, I started to use Selenium in a normal C# console application. That worked great!

    Afterwards, instead of launching Selenium from a Console I tried to do it from: 1) a WCF Application; and also from 2) an ASP.NET Web Application.
    Those 2 approaches worked fine while being launched from within Visual Studio.

    However, when I deployed and tried to run those 2 different approaches the Seleniumn InternetExplorerDriver server (the same with chromedriver) was never launched as opposed to what happened when being run from the Console Application.

    I’m getting the following error:

    OpenQA.Selenium.WebDriverException: A exception with a null response was thrown
    sending an HTTP request to the remote WebDriver server for URL
    http://localhost:3227/session//window. The status of the exception was ConnectFailure,
    and the message was: Unable to connect to the remote server —> System.Net.WebException:
    Unable to connect to the remote server —> System.Net.Sockets.SocketException:
    No connection could be made because the target machine actively refused it 127.0.0.1:3227
    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
    at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
    — End of inner exception stack trace —

    I’m stuck there. I guess it may have to do with who is the Host from where the Selenium Web Server is being run and their privileges. That’s whether it is a Console, a WCF App or an ASP.NET Web App (hosted in IIS) but I don’t know what to do or where to look to sort this out.

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleUnable to locate pseudo element using javascript executor in Selenium JAVA
    Next Article Java Selenium: Custom Assert Message for Multiple Checkbox

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 15, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-30419 – NI Circuit Design Suite SymbolEditor Out-of-Bounds Read Vulnerability

    May 15, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    aADADADDDDDDDDDDawdADad

    Development

    AI’s Greatest Threat? Elon Musk Sounds the Alarm on the ‘Woke Mind Virus’ – Part 4 of the Research Article

    Artificial Intelligence

    Most UK Software Buyers Regret Their Purchases Because of Hidden Costs, Research Finds

    News & Updates

    Neiman Marcus Alerts Customers After Data Breach Exposes Information of 64,472 Individuals

    Development
    Hostinger

    Highlights

    Nutraceuticals Unveiled – A Holistic Odyssey to Wellness

    June 18, 2024

    Post Content Source: Read More 

    Optimizing Large-Scale AI Model Pre-Training for Academic Research: A Resource-Efficient Approach

    November 5, 2024

    How to Write a Good Conference Talk Proposal – CFP Guide

    April 22, 2025

    Bloodywood Return Of The Singh Tour 2025 Shirt

    December 23, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.