Showing posts with label testing. Show all posts
Showing posts with label testing. Show all posts

WebDriver is not able to find out WebElement present on Web Application

Recently came across one of the problem and I think it would be helpful to everyone if I share the details.

Problem Statement: WebDriver was not able to find out WebElement

I was using Firefox WebDriver, and in one of my test WebDriver was not able to find out Link / Image / Button for some reason.

HTML page Code look like below: I want to click on "New" link/image.

<div id="toolcontainer">
       <ul id="toollist">
              <li>
                     <a id="btnNewDash" title="New" onclick="javascript:$('#addTab').dialog('open'); return false;" href="#">
                            <span class="toollistimg"></span>
                            <span class="toollisttext"></span>
                        </a>
                 </li>
              <li></li>
          </ul>
   </div>

But when I use below code in my test, it didn't work... I tried following -

How to Hide Any Open Application Window during the Automation?




Q. How to hide Application Window during the automation?

During the development of my one of the projects I wanted to hide Firefox web browser window.

I was using HtmlUnitDriver to automate something but using it we cannot hide any web browser window, i did some research and some across one very good tool called AutoIt , It has all the capability to handle windows.

We can perform all kinds of operations using AutoIt.

Let me tell you how we can implement utility which can help us to Hide and again show any application window. Please follow below steps one by one.

1. You have to first install AutoIt, it is free. download from here

2. Open the Editor and write below code for Hiding any window.

Continue Reading >
Related Posts Plugin for WordPress, Blogger...
Powered by Blogger