Part 22
103 : How to customize Firefox browser profile for webdriver software test?
Answer : You tin lav exercise It In 2 unlike ways.
- You tin lav exercise your desired firefox browser profile earlier running software automation exam together with and then you lot tin lav purpose It In your selenium webdriver software test. VIEW EXAMPLE.
- You tin lav customize your firefox browser profile run fourth dimension earlier launching webdriver's Firefox browser Instance. VIEW EXAMPLE.
104 : What is Difference betwixt getAttribute() together with getText()?
Answer :
- getAttribute() method Is useful to read software spider web app element's attribute value similar id, name, type etc. VIEW EXAMPLE.
- getText() method Is useful to read text from chemical cistron or alert. VIEW EXAMPLE.
105 : What is the divergence betwixt WebDriver and Remote WebDriver?
Answer : Simple response for this questions Is every bit bellow.
- WebDriver : Webdriver Is an Interface or nosotros tin lav tell software testing tool using which nosotros tin lav exercise automated exam cases for spider web application together with and then run on unlike browsers similar IE, Google chrome, Firefox etc.. We tin lav exercise exam cases In unlike languages. VIEW MORE DETAIL.
- Remote WebDriver : Remote WebDriver Is useful to run exam cases In same machine or remote machines using selenium Grid.
106 : I accept full 200 exam cases. I wants to execute exclusively twenty exam cases out of them. Can I exercise It In selenium WebDriver? How?
Answer : Yes. If you lot are using TestNG amongst selenium webdriver software testing tool together with then you lot tin lav exercise Is using grouping approach every bit described In THIS PAGE. Create split upwardly grouping for those twenty exam cases together with configure testng.xml file accordingly to run exclusively those twenty exam cases.
Also If you lot are using information driven framework together with then you lot tin lav configure It In excel file. You tin lav configure such information driven framework at your ain past times next steps given on THIS PAGE.
Also If you lot are using information driven framework together with then you lot tin lav configure It In excel file. You tin lav configure such information driven framework at your ain past times next steps given on THIS PAGE.
107 : Can you lot tell me 3 unlike ways to refresh page. Do non use .refresh() method.
Answer : We tin lav refresh browser In many unlike ways. Three of them are every bit bellow.
driver.get(driver.getCurrentUrl());
driver.navigate().to(driver.getCurrentUrl());
driver.findElement(By.xpath("//h1[@class='title']")).sendKeys(Keys.F5);