UrbanPro

Learn Selenium from the Best Tutors

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

Search in

How do I handle the AngularJS UI using Selenium 2.0?

Asked by Last Modified  

Follow 1
Answer

Please enter your answer

Qa mentor | sdet | istqb® | csm® | sfc™ | perfecto automation certified | recommended on urbanpro

package testPkg; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; public class AngularSite { public static void main(String args) throws...
read more
package testPkg; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; public class AngularSite { public static void main(String[] args) throws InterruptedException { WebDriver driver = new FirefoxDriver(); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); driver.manage().window().maximize(); driver.get("https://angularjs.org/"); Thread.sleep(1000); //we are about to identify an element with attribute ng-model driver.findElement(By.xpath("//input[@ng-model='yourName']")).sendKeys("xyz"); WebElement fld_Result = driver.findElement(By.xpath("//h1[@class='ng-binding']")); System.out.println(fld_Result.getText()); if (!(fld_Result.getText() == "Hello xyz!")) //returns 0, if equals, so negation { System.out.println("Passed"); } } read less
Comments

Related Questions

what is pop handling ?
using windowhandles() you can do popup handling with selenium webdriver
Vishal
To start learning Selenium, how well do I have to know or be familiar with Java?
If you have to learn Web driver then you have to learn Java. At least you should be learning Core Java. In Selenium Web driver most of the things or every thing is done in Java. Or you can choose alternative programming language.
Uday
0 0
6
Is Selenium in automation a good career?
Yes, it is an awesome career option and it will add value too. I saw people from Manual Testing upgraded themselves to Selenium. If you want to make career in Automation Testing field, then Selenium is...
Vijayaadithya
0 0
8
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

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

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

Ask a Question

Related Lessons

doWhile example in Java
public class doWhilePracticleEx { public void test() { } public static void main(String args) { String q1 = "Who is PM of India?"; String a1 = "Sonia Gandhi"; String a2 = "Rahul Gandhi"; String a3...
S

Sarthak C.

0 0
0

Being a Tester.
Being a tester one should never ever work in an isolated environment. He should be aware of whole Product functionality and architecture.For starting you may proceed with - 1. Learn to login to the ip...

Setting Up Environment For Selenium Webdriver
1. Installation of Selenium IDE: i. Launch Firefox and navigate to https://addons.mozilla.org/en-US/firefox/addon/selenium-ide/ . Click on Add to firefox. ii. Wait until Firefox completes the download...

Wait Handler implementation in WebDriver
public void waitForElementPresence(By by) { Wait<WebDriver> wait = new WebDriverWait(driver, GLOBAL_TIME_OUT); wait.until(ExpectedConditions.presenceOfElementLocated(by)); } ...

Commonly occurred exceptions you know in WebDriver
WebDriverException NoAlertPresentException NoSuchWindowException NoSuchElementException TimeoutException

Recommended Articles

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 >

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 >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

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 >

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