Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8564481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:12:38+00:00 2026-06-11T17:12:38+00:00

So, the scenario is to login to said website using a formatted url, rather

  • 0

So, the scenario is to login to said website using a formatted url, rather than doing something like what is below. Upon reading documentation regarding Selenium etc i read that this is bad practice (Excluding a login test case). I understand that the method i am inquiring about is not to be used on production level.
Does the url method pull the login information from a database?

//ENTER AGENT LOGIN ID
                IWebElement LoadAgentLoginID2 = selenium.FindElement(By.Id("MainContent_txtAgentID"));
                LoadAgentLoginID2.Click();
                LoadAgentLoginID2.SendKeys(AgentLoginIDs[0]);

                //ENTER ARC NUMBER
                IWebElement LoadARCnumber2 = selenium.FindElement(By.Id("MainContent_txtArcNbr"));
                LoadARCnumber2.Click();
                LoadARCnumber2.SendKeys(System.String.Format("{0}", ARCnumbers[1]));

                //ENTER PASSWORD
                IWebElement LoadPassword2 = selenium.FindElement(By.Id("MainContent_txtPassword"));
                LoadPassword2.Click();
                LoadPassword2.SendKeys(AgentPasswords[0]);

Any help is greatly appreciated. Cheers!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T17:12:40+00:00Added an answer on June 11, 2026 at 5:12 pm

    The url method needs to be supported by the web application. If this is supported, then it would simply be something like this:

    driver.get(“http://www.mywebapp.com?username=JohnP&password=ABCD”);

    If the web app does not support this, then you should just try to encapsulate your login logic above into a separate and reusable method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a scenario where people login to the IM we developed using the
I have scenario like login page where when the user access any privileged page,
Business scenario: Customers can login to an online e-Commerce app, using their e-mail addresses
The scenario: I'm creating a login form for an MVC2 application. How i'm doing
Scenario: My general portal is hosted in IIS using ASP.NET and a login page.
Simple scenario: 1. My client wants to login to my website. he goes to
Ok, i have simple scenario: have two pages: login and welcome pages. im using
In my web app, I am using form-based login. I have a scenario where
example scenario is: from login screen - main screen - then when i clicked
Scenario: I have a login page which uses ajax to validate a user and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.