UrbanPro

Learn Selenium from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

When I open a page, it asks username and password. But I inspected that username and password don't have any inspect. So, my question is how to pass elements without locators (selenium with c#)?

Asked by Last Modified  

Follow 3
Answer

Please enter your answer

Problem Solver

You need to pass username & password in the URL, i.e. https://username:password@url.
1 Comments

Automation Trainer

What does it mean of don't have any inspect? If the element does not have any attributes, then use the parent element to inspect the element.
Comments

Automation Testing Corporate Trainer Helping You in Rapidly Changing Software Testing World | Let's ConnectAutomation Testing Corporate Trainer Helping You in Rapidly Changing Software Testing World | Let's Connect

You get this because the server wants to authorise the user, which is not part of your web application, so you cannot inspect it. To solve this, follow the below code.: WebDriver driver = new ChromeDriver(); driver.get("http://username: password@application_url"); Write application URL as shown above. Whatever...
read more

You get this because the server wants to authorise the user, which is not part of your web application, so you cannot inspect it.

To solve this, follow the below code.:

WebDriver driver = new ChromeDriver();

driver.get("http://username: password@application_url");

Write application URL as shown above.

Whatever username and password you want to enter, add it like above in the URL. It will not show the pop-up to enter user credentials.

Try this and let me know if this works.

read less
Comments

. 16yrs experience as java selenium automation Architect

What all attributes u see for the imput fields?For any site html element will have a tag name like input, Text . You can constuct the xpath with attibute. Any page developed HTMl elements with have attributes. U can even go For CSS
Comments

View 2 more Answers

Related Questions

what is pop handling ?
using windowhandles() you can do popup handling with selenium webdriver
Vishal
What is the cost of ISTQB Test? What is the procedure to apply for it? I am a graduate in B.Sc. Can this ISTQB test help me in finding a IT job?
Hi Jagadeesh, Getting a job in Testing needs good conceptual knowledge in Software Engineering, Testing, Test Methodologies and types, Test Reporting and Metrics. ISTQB will have questions more related...
Jagadeesh
What is the best way to learn selenium testing? N start career in automation testing?
For learning Selenium testing , Prepare for Core Java later learn Selenium WebDriver.
Deepak
Hi, We provide online instructor-led training. I am looking for Java Teacher/Instructor who can teach java via online. If anyone interested then contact me. I have to start the class from tomorrow onwards.
Hi, If you haven't finalised yet, I am interested in being an instructor. I will be teaching the newest version of Java, Java 10. Experience - 3 yrs as Software Engineer, BTech CSE, teaching Java to school and college students since 3 yrs.
Ujjwal Rana

Can I learn selenium without manual testing knowledge?

The mentor will guide you the basics of Manual Testing ...You can able to learn.
Krishna

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Introduction of Selenium
Selenium is one of the most popular open-source automated testing Tools available today. Selenium automates web applications for testing purposes, but is certainly not limited to just that.Introducing...
N

Selenium Web Drive Wait Methods
Hi I am Rajesh, Here we have three types of wait methods in Selenium: 1.Implicitly Wait: Wait if required, otherwise, if the accuracy will good program will move to next level In General most of the...

How to toggle b/w windows in webdriver
getWindowHandles will provide us handles for all windows available. Set windows = driver.getWindowHandles(); Iterate through all windows and choose suitable window based on its title for (String window...

Example of DependsOnMethod in TestNG
public class dependsonM { @Test public void login() { System.out.println("login"); } @Test (dependsOnMethods = {"login"}) public void email() { //Intentionally I am failing this testcase Assert.assertTrue(false);...
S

Sarthak C.

0 0
0

Selenium Lesson on TestNg
Testing Annotations @BeforeSuite: The annotated method will be run before all tests in this suite have run. @AfterSuite: The annotated method will be run after all tests in this suite have run. @BeforeTest:...

Recommended Articles

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Looking for Selenium Training?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Selenium Classes?

The best tutors for Selenium Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Selenium with the Best Tutors

The best Tutors for Selenium Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more