Highlighting individual element will be done directly by using "highlight" command with selenium IDE. You can see script Example 1, Example 2 and Example 3 for "highlight" command. Now if you want to highlight each and every element of software web application with selenium IDE command execution then
you need to install "Highlight Elements" Plugin for selenium IDE. It will highlight element during execution when selenium IDE will operate on it. "Highlight Elements" is Firefox add on and is developed by Samit Badle.
you need to install "Highlight Elements" Plugin for selenium IDE. It will highlight element during execution when selenium IDE will operate on it. "Highlight Elements" is Firefox add on and is developed by Samit Badle.
Installation of "Highlight Elements" Plugin
- Search for "Highlight Elements (Selenium IDE)" add on at https://addons.mozilla.org/en-US/firefox/
- Follow same installation process of Firefox add on as described in Selenium IDE "Screenshot on fail" plugin and Selenium IDE "Test Results" plugin posts.
- After completion of add on software installation, restart Firefox browser and selenium IDE.
Now you will see "Highlight Elements" button on selenium IDE window as shown in bellow given image.
How to use "Highlight Elements" Plugin for selenium IDE
- Create selenium IDE test case as bellow.
New Test | ||
Command | Target | Value |
open | http://only-testing-blog.blogspot.com/p/blog-page.html | |
pause | 200 | |
select | //select [@id='entry_300009656'] | label= Manual Testing |
pause | 200 | |
sendKeys | //input [@id='entry_131946836'] | My Post |
pause | 200 | |
verifyElementPresent | //textarea [@id='entry_346253499'] | |
pause | 200 | |
type | //textarea [@id='entry_346253499'] | My description in 100 words. |
pause | 200 | |
sendKeys | //input [@id='entry_1244873461'] | My ?Name |
- Click on "Highlight Elements" button on selenium IDE window to turn on this function.
- Run above test case in selenium IDE and observe highlight element effect in your browser page. Elements will be highlighted one by one with selenium IDE command execution.
Hi! I execute test suite from command line using selenium server. There is "unknown command" error when I use "sendKeys" command. I cannot replace it with "type" command because there is auto complete field. Is it possible to fix it?
ReplyDelete