Technical

Apart from Technical Topics, increasingly i find myself wanting to write about other topics that interests me - Entreprenuership and Business, Leadership, Africa, Service Industry (e.g Hotels, Restaurant). My writings would always represent my opinions and it might change from time to time.

Using selenium.GetEval(script)to execute Javascript

The task at hand was to navigate through the DOM of a particular webpage and check the style.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 and msgFailed) For perfomance reasons, if previously a successful message was displayed and subsequently the you get a failure message, what the developers of the page did was to amend the style.

Use selenium to create screenshot

I just stunbled across selenium as a tool to take screenshot. Thuis could be useful for anything. In my case i used it to take the screenshot of a page just before it throws an error in my selenium test. and that i could have a look and investigate what the problem might have been. very simple command and the great thing is it can be easily used for screenshots of a page across different browsers.

Selenium and Javascript events

Have you ver been in situattion when you have typed a value into a text box and you expect a Javascript event to be triggered such as “OnBlur” Well selenium has a method “FireEvent” which triggers the event for you, but then the trick is you have to strip the “on” and name for the event wouldbe “OnBlur” I guess abit of example would make more sense, lol. This is what my html look like

Selenium: Xpath locator can not be used as Option Locator

In my new job been doing a lot of selenium and i needed to scroll through the list of options in a select element and click on a particular options. I have initially used the browser.DoubleClick browser.DoubleClick(“xpath=//select/option[child::text()=‘Option_Label’]“);) But then this didnt work because selenium doesn’t have the functionality to scroll down the select element in other to make my desired option visible. Looking through the selenium api, i have used another method, which take in two parameters, the select locator and the option locator.

Sorting out devices - Wireless, Inbuilt Microphone on Ubuntu Hardy Heron

>Faced with the reality of having to hand in my MAC to my former workplace, i decided to buy a Windows machine (HP 6735s Laptop, AMD Athlon TM X2 Dual Core QL-60 1.9Ghz, 4GB memory, 250GB HDD, DVD+-RW SMDL LightScribe writer, Webcam 15.4” WXGA (1280 x 800) WLAN Bluetooth Microsoft Windows Vista Home Premium ) and being a MAC - convert, coupled with the numerous negative feedback about Vista. I have installed Ubuntu Hardy Heron on a seperate partition.

Nant SCP Task: deploy file to a remote server

Actually started the task by attempting to use MSBuild to deploy my application to a remote server. which would require some secure means, scp, sftp or something of that sort. The closest i got was SSHSharp which was written by a third party and not thoroughly tested, i then decided maybe that wasn’t the path to go. Tried to go for Nant instead, and found that Nant core doesnt have a task for secure copy,