Find the best tutors and institutes for Selenium

Find Best Selenium Training

Please select a Category.

Please select a Locality.

No matching category found.

No matching Locality found.

Outside India?

Search for topics

Selenium Updates

Ask a Question

Post a Lesson

All

All

Lessons

Discussion

Lesson Posted on 07/04/2018 IT Courses/QA/Selenium IT Courses/QA/Selenium/Selenium with Java

Selenium Web Driver commonly used method

Sam

I have total 12.5+ years of professional experience as a Proficient as Lead and Manage QA activities...

Navigation Loading a web page in a current browser window driver.get("www.google.com") driver.navigate().to("www.google.com") driver.navigate().to("www.google.com") Move back & forward Driver.Navigate().Back() Driver.Navigate().Forward() Refresh page Driver.Navigate().Refresh() Locating... read more

Navigation

Loading a web page in a current browser window

  • driver.get("www.google.com")
  • driver.navigate().to("www.google.com")
  • driver.navigate().to("www.google.com")

Move back & forward

  • Driver.Navigate().Back()
  • Driver.Navigate().Forward()

Refresh page

  • Driver.Navigate().Refresh()

Locating web elements

By class

  • Id
    • driver.findElement(By.id(”some_id”));
  • ClassName
    • driver.findElement(By.className(”some_class_name”));
  • LinkText
    • driver.findElement(By.linkText(”Signin”));
  • PartialLinkText
    • driver.findElement(By.partiallinkText(”Sign”));
  • Name
    • driver.findElement(By.name(”password”));
  • TagName

    • driver.findElement(By.tagName(”label”));
  • CssSelector
    • Absolute path
      –driver.findElement(By.cssSelector(”html>body>div>p>input”));
    • Relative path
      –driver.findElement(By.cssSelector(”input”));
    • Classselection
      –driver.findElement(By.cssSelector(”.login”));
  • XPath
    • Absolute path
      –driver.findElement(By.xpath(”html/body/p/input”));
    • Relative path
      –driver.findElement(By.xpath(”//input”));
    • Attribute selection
      –driver.findElement(By.xpath(”//input[@id=’username’]”));

Synchronization

Page Load Timeout

  • driver.manage().timeouts(). pageLoadTimeout(30, TimeUnit.SECONDS);

Explicit Wait

  • WebDriverWaitwait = new WebDriverWait(driver, TIME_OUT); wait.until(ExpectedConditions.method);

Window Handling

Handles

  • String windowHandle= driver.getWindowHandle();                                             Iterator<String> windowIterator=browser.getWindowHandles();
  • SwitchTo : driver.switchTo().window(windowHandle);
read less
Comments
Dislike Bookmark

Lesson Posted on 02/04/2018 IT Courses/Software Testing/Appium for Android & iOS IT Courses/QA/Selenium

Code to launch Chrome browser using Appium on Andriod

Devendra V.

I have been working as software engineer for the past 8 years. Currently associated with Opentext as...

DesiredCapabilities capabilities = new DesiredCapabilities();capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android");capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "4.2.2");capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "Android");capabilities.setCapability(MobileCapabilityType.BROWSER_NAME,... read more

DesiredCapabilities  capabilities = new DesiredCapabilities();
capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android");
capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "4.2.2");
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "Android");
capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, "Chrome");
ChromeOptions options=new ChromeOptions();
options.setExperimentalOption("androidPackage", "com.android.chrome");
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
WebDriver driver = new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
driver.get("http://www.yahoo.com");

read less
Comments
Dislike Bookmark

Lesson Posted on 02/04/2018 IT Courses/QA/Selenium/Selenium with Java

How to mouse hover on an element in webdriver

Devendra V.

I have been working as software engineer for the past 8 years. Currently associated with Opentext as...

Actions action = new Actions(webdriver);WebElement we = webdriver.findElement(By.id("email"));action.moveToElement(we).build().perform();
Comments
Dislike Bookmark

Looking for Selenium Training

Find best Selenium Training in your locality on UrbanPro.

FIND NOW

Lesson Posted on 02/04/2018 IT Courses/QA/Selenium/Selenium with Java

How to toggle b/w windows in webdriver

Devendra V.

I have been working as software engineer for the past 8 years. Currently associated with Opentext as...

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 : windows){ driver.switchTo().window(window); if (driver.getTitle().contains(windowTitle))... read more
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 : windows)
{
       driver.switchTo().window(window);
       if (driver.getTitle().contains(windowTitle))
       {
             //do implementation
       }     
}
read less
Comments
Dislike Bookmark

Lesson Posted on 02/04/2018 IT Courses/QA/Selenium/Selenium with Java

How to toggle b/w frames in webdriver

Devendra V.

I have been working as software engineer for the past 8 years. Currently associated with Opentext as...

driver.switchTo().frame() method takes one of the three possible arguments: A number - Select a frame by its (zero-based) index. A name or ID - Select a frame by its name or ID. A previously found WebElement - Select a frame using its previously located WebElement. read more

driver.switchTo().frame() method takes one of the three possible arguments:

  • A number - Select a frame by its (zero-based) index.
  • A name or ID - Select a frame by its name or ID.
  • A previously found WebElement - Select a frame using its previously located WebElement.
read less
Comments
Dislike Bookmark

Lesson Posted on 02/04/2018 IT Courses/QA/Selenium/Selenium with Java

Difference between find element () and findelements () in webdriver

Devendra V.

I have been working as software engineer for the past 8 years. Currently associated with Opentext as...

findElement Find the first element within the current page using the given "locating mechanism". Returns a single WebElement. findElements Find all elements within the current page using the given "locating mechanism". Returns List of Web Elements. read more
findElement
  1. Find the first element within the current page using the given "locating mechanism".
  2. Returns a single WebElement.
findElements
  1. Find all elements within the current page using the given "locating mechanism".
  2. Returns List of Web Elements.
read less
Comments
Dislike Bookmark

Lesson Posted on 02/04/2018 IT Courses/QA/Selenium/Selenium with Java

Commonly occurred exceptions you know in WebDriver

Devendra V.

I have been working as software engineer for the past 8 years. Currently associated with Opentext as...

WebDriverException NoAlertPresentException NoSuchWindowException NoSuchElementException TimeoutException
Comments
Dislike Bookmark

Answered on 25/01/2018 IT Courses/QA/Selenium

Arun Sharma

Tutor

As a beginner level you should have some meaningful idea of some basic terminologies and their functional behaviors like classes, data types or methods. Once you start understanding these, then you can jump on the concept of OOPS and can start your selenium learning simultaneously so that you can correlate... read more

As a beginner level you should have some meaningful idea of some basic terminologies and their functional behaviors like classes, data types or methods. Once you start understanding these, then you can jump on the concept of OOPS and can start your selenium learning simultaneously so that you can correlate your learning with the practical and hands on work. In case of any more doubt, you can contact me on my number. We can have a discussion.

read less
Answers 3 Comments
Dislike Bookmark

Answered on 09/02/2018 IT Courses/QA/Selenium

Geetha

Teacher

By id
Answers 3 Comments
Dislike Bookmark

Looking for Selenium Training

Find best Selenium Training in your locality on UrbanPro.

FIND NOW

Answered on 14/03/2018 IT Courses/QA/Selenium

Nisha K.

Selenium Trainer

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 the best option for you.Selenium, the most popular automated testing technology, is open source and... read more

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 the best option for you.
Selenium, the most popular automated testing technology, is open source and free of charge.

read less
Answers 8 Comments
Dislike Bookmark

About UrbanPro

UrbanPro.com helps you to connect with the best Selenium Training in India. Post Your Requirement today and get connected.

Overview

Questions 439

Lessons 47

Total Shares  

+ Follow 17,690 Followers

Top Contributors

Connect with Expert Tutors & Institutes for Selenium

x

Ask a Question

Please enter your Question

Please select a Tag

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 25 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 6.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