Imagine that you want to test your web application that uses geolocation in the browser, when it cannot use geolocation. All location-based applications need to support this if you were to get a user who is worried about privacy on certain machines.
Now we need to find an element. In this section we will find the link Chapter 4:
WebElement element = driver.findElement(By.linkTexxt("Chapter 4"));Now we need to click on the link:
element.click();Run your test and it should look like the following:
What just happened?
We have just seen how we can set a preference with Opera and then inject that into the browser so that when the browser starts, it is there for us to use. As mentioned earlier, there are a lot of different preferences that can be set. To see a list of these, open Opera and use the URL opera: config or visit http: //www.opera.com /support/ usingopera/ operaini/.
|
|
Selenium Related Tutorials |
|
---|---|
QTP Tutorial | JMeter Tutorial |
Software testing Tutorial | JUnit Tutorial |
TestNG Tutorial | SAP Testing Tutorial |
QUnit Testing Tutorial |
Selenium Related Interview Questions |
|
---|---|
SILK TEST Interview Questions | QTP Interview Questions |
JMeter Interview Questions | Automation Testing Interview Questions |
Software testing Interview Questions | JUnit Interview Questions |
TestNG Interview Questions | SAP Testing Interview Questions |
Selenium WebDriver Interview Questions | Selenium IDE Interview Questions |
QUnit Testing Interview Questions | Performance Testing Interview Questions |
Hadoop Testing Interview Questions |
Selenium Related Practice Tests |
|
---|---|
QTP Practice Tests | JMeter Practice Tests |
Software testing Practice Tests | JUnit Practice Tests |
Performance Testing Practice Tests |
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.