Tag Archives: DOM

type into a textfield with keypress event disabled

A colleague asked me how to automate a disabled text-box which has a calendar attached to it. The customer has specified that they want keyboard entries disabled for this text-field, hence every user of the website has to use the … Continue reading

Posted in Software Testing | Tagged , , , , , , , | 2 Comments

Waiting for Elements in an IFrame on a WebPage to Load

>Waiting for a page to load while writing selenium scripts is pretty straightforward using theselenium.WaitForPageToLoad(“timeout”) timeout is time in millisecond. Sometimes using this command doesn’t work, especially when you the whole page is not loaded or reloaded but a popup … Continue reading

Posted in Software Testing | Tagged , , , , | 1 Comment

Need to get a value of an attribute using selenium

>I was in this situation when i needed to get the value of an html attribute and i found the selenium.getattribute very handy ….. Okay the scenario was such that there was an element which is collapsible on the page … Continue reading

Posted in Software Testing | Tagged , , , , , , , , | Leave a comment

Using selenium.GetEval(script)to execute Javascript

>The task at hand was to navigate through the DOM of a particular webpage and check thestyle.display attribute of an object or element if you prefer. There are two elements on this page that displayed either success or failure messages.(msgSuccess … Continue reading

Posted in Software Testing | Tagged , , , , | 1 Comment