Information
For more information about our classifieds, please check following links.
Terms & Conditions Privacy Policy & Cookie Policy Disclaimer Safety Tips About us
Welcome to adswoo.com! Sign In Are you new to our site? Register now
1 photo
Vote
Result 0 votes

Description

1. Creating New Instance Of Firefox Driver – this will open a new Empty browser
WebDriver driver = new FirefoxDriver();
2. Command To Open URL In Browser
driver. get(“http://selenium-suresh.blogspot.com”);
This syntax will open specified URL of the software web application in web browser.
3. Clicking on any element or button of webpage
driver.findElement(By.id(“id of any element or button”)).click();
4. Store text of targeted element in variable – This will retrieve text from targeted element of software web application page and will store it in variable = suresh
String suresh = driver.findElement(By.tagName(“select”)).getText();
5. Typing text in text box or text area.
driver.findElement(By.name(“txtboxname”)).sendKeys(“My First Name”);
6. Applying Implicit wait in webdriver – This syntax will force webdriver to wait for 15 seconds if an element not found on the page of the software web application.
driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);
7. Applying Explicit wait in webdriver – This will wait for 15 seconds for the expected text “Time left: 7 seconds” to appear on the targeted element.
WebDriverWait wait = new WebDriverWait(driver, 15);
wait.until(ExpectedConditions.textToBePresentInElementLocated(By.xpath(“xpathofelement”), “Time left: 7 seconds”));
8. Get page title in selenium webdriver
driver.getTitle();
9. Get the Current Page URL In Selenium WebDriver- It will retrieve the current page URL and you can use it to compare with your expected URL.
driver.get current URL();
10. Get domain name using javascript executor – This will retrieve your software application’s domain name using web driver's javascript executor interface and store it into variable.
JavascriptExecutor javascript = (JavascriptExecutor) driver;
String CurrentURLUsingJS=(String)javascript.executeScript(“return document.domain”);

For more details please visit: https://nareshit.com/selenium-online-training/

Comments Add new

Add new comment
No comments added yet. Be first to leave comment!

Publisher's info

Seller's picture
Private person
Registered on May 6, 2020

Listing location

India, Andhra Pradesh, Hyderabad

Publisher's email address

Close
.
- you cannot copy & paste mail, you need to rewrite it
- do not send spam
- ask only questions related to this product
- do not be rude
Hello! Sign in to get more.
Home Search My favorite items My account My alerts My personal info My listings Mail us
Refine search
Keyword
Category
Location

Country

Region

City

Pictures
Price

Price:

-
Advanced
Clean search