Home > Software Testing (Page 5)

Use Actions class to perform keyboard event in selenium

Code to perform key press events , mouse left right operations using action class. Functions for keyboard Uses keyDown(java.lang.CharSequence key) To simulate key down event on current location. keyDown(WebElement target, java.lang.CharSequence key) To simulate key down event on target element. keyUp(java.lang.CharSequence key) To simulate key up event on current location. keyUp(WebElement target, java.lang.CharSequence key) To simulate key up event on

This Article is TAGGED in . Read more

Use Action class to perform drag and drop In selenium

Drag and drop activity performed by using Actions class. dragAndDrop(WebElement source, WebElement target) → It used to drag source element to target web element. dragAndDropBy(WebElement source, offsetX , offsetY) →  It used to drag source web element to targeted location using offset. Code snippet: [crayon-67b6d6d3cb73f444351091/]  

This Article is TAGGED in , , . Read more

Use of actions class to perform mouse operation in selenium

In Selenium Action class is used to perform drag and drop operation move any element Press composite key hover on element Click action related function with their uses Click and Move Actions Their uses click() Perform left click action on current mouse position. click(WebElement target) Perform left click action on center of given web element. contextClick() Perform right/context click action on current mouse

This Article is TAGGED in , , . Read more

Code to identify all web / broken links of a website

Below selenium code will be useful to identify all website links from all the pages as well as broken links. [crayon-67b6d6d3cbcbf416003882/] Output of above program after entering valid url and domain name  Link Name Internal / External Response of link http://www.mundrisoft.com/index.html internal link working 200 http://www.mundrisoft.com/ internal link working 200 http://www.mundrisoft.com/capabilities.html internal link working 200 http://www.mundrisoft.com/case-studies.html internal link working 200 Selenium Tutorial >>

This Article is TAGGED in . Read more

Test bulk urls using Excel VBA macro

To verify page load errors, specific text for thousands of web page it is possible using simple excel Macro.  To perform testing on thousands of URL we can easily use below macro code to verify page load error 404, verification of specific text or any other data validation requirment. [crayon-67b6d6d3cbe26962140469/]   >> Manual Testing

This Article is TAGGED in , , . Read more

Tester role in Agile methodology

What is testing in an agile process? A software testing process that takes place in the agile software life cycle is known as Agile testing.The testing process in agile methodology is a continuous testing process. The development and Testing goes hand in hand in Agile methodology.The Testing start as soon as the project starts

This Article is TAGGED in . Read more