Create Extent Reports with Selenium:
Pre-requisites Installations to Generate Extent Reports: Following softwares needs to be configured / installed on local system: 1. JDK 2. TestNG 3. Extent Report Jars Download here 4. extent-config.xml...
Pre-requisites Installations to Generate Extent Reports: Following softwares needs to be configured / installed on local system: 1. JDK 2. TestNG 3. Extent Report Jars Download here 4. extent-config.xml...
In order to implement POM in we can adopt following project structure: Common function Init — which takes care of Browser launch Page objects — This defines the Page...
WebDriver supports POM (Page Object Model) via PageFactory class. In order to use PageFactory, all the elements needs to be declared on a PageObject as “WebElement” or “List<WebElement>” as...
Explicit wait in selenium: Forcing an exact time of wait (Explicit wait) for specific time can be achieved with: WebDriverWait wait; wait = new WebDriverWait(driver, 30); wait.until(ExpectedConditions.visibilityOf(lnkCardMenu)); This...
While designing “Automation frameworks” following are some of pitfalls to avoid to keep “Low maintenance” of scripts: Avoid test scripts with local test data Generally seen in module driven...
Today all businesses need to release new versions to market frequently with short time to meet technology changes, meet diverse needs of global customers, improved User experience, bring in...
-For the number pad addition key. driver.FindElement(By.XPath(“String”)).SendKeys(Keys.Add); -For the Alt key. driver.FindElement(By.XPath(“String”)).SendKeys(Keys.Alt); -For the Left arrow key. driver.FindElement(By.XPath(“String”)).SendKeys(Keys.ArrowDown); -For the left arrow key. driver.FindElement(By.XPath(“String”)).SendKeys(Keys.ArrowLeft); -For the right arrow key....
TestNG allows user to configure a time period to wait for a test to completely execute. Timeout can be configured in two ways: #1. At TestMethod level: @Test(timeout=500) public...
Annotation | Syntax | Description —————————————————————————————————————————————– @BeforeSuite | public void | The method will be run only once, before all the tests in the suite are executed. @BeforeGroups |...
TestNG provides features to allow selective execution of testcases based on userdefined priority. Sometimes we do not need to execute all test methods as defined in multiple test classes....