UrbanPro

Learn Selenium from the Best Tutors

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

Search in

How do I write Script in selenium using Java for a login module?

Asked by Last Modified  

Follow 3
Answer

Please enter your answer

Selenium Trainer

if you know finding object then you can inspect each of login feature ....eh username,pwd
Comments

Trainer

Consider below basic selenium java code -- import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.WebElement; public class TestCase1 { public static void main(String args) { WebDriver driver...
read more
Consider below basic selenium java code -- import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.WebElement; public class TestCase1 { public static void main(String [] args) { WebDriver driver = new FirefoxDriver(); driver.get("http://myloginpage.com"); driver.findElement(By.name("username")).sendKeys("testuser");; driver.findElement(By.name("password")).sendKeys("abc123");; driver.findElement(By.xpath("//input[3]")).submit(); } } read less
Comments

Selenium And Java Trainer

No default method in selenium for login. Find elements of field and use send keys method and click.
Comments

View 1 more Answers

Related Questions

Hi All,

Which combination is good?

1) Selenium with Java

2) Selenium with Python

Thank you.

If you're new to coding, I do prefer Python as more like to a descriptive language. But you'll notice less selenium support in web while compared to Java. Java has a broad support base. But Selenium with...
B

Can I learn selenium without knowladge programing language

The mentor will guide you the java basics wrt selenium automation. You can able to learn. Gayatri
Ch
How long will you take to complete selenium course as a weekend batch ? And what is the time duration for each class ?
Selenium and Java basics will take require around 8 hours of coaching. 2 hours every week. Rest, the student needs to practice at home on a daily basis
Ramachandran
what is pop handling ?
using windowhandles() you can do popup handling with selenium webdriver
Vishal

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

Ask a Question

Recommended Articles

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

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 >

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