Saturday, 17 March 2012

My first contribution to selenium :)

Well, I really proud of it :)  -  r16282
You would say only 3 lines of code , haha ... that was enough though to fix rather important thing
However, I consider it as an experience of getting introduced with Jim Evans more , than the fix itself.

Tuesday, 28 February 2012

Selenium Camp 2012 Review

Of course I've been there with other 350 attendees ... I could not skip the event, therefore, which took place that near. I really like what XPInjection does, and SeleniumCamp is nearly the best among theirs inventions and achievements.
Saying about speakers, however, I did not notice much progress comparing to 2011. I would even say that by far a half of them brought the same what I had heard at 2011. Although, another half of topics was just amazing: major excitement I've got was about Selenium as a W3C standard and WebDriver Internals. Besides, I really enjoyed "Selenium vs Ajax" topic by Alexey Barancev and heard by far the nicest feedback to TDD topic by Nikolay Alimenkov.
Camp attracts a lot of people from abroad  - a co-worker of mine came from Sweden to attend the camp. Five among seven time slots have got at least one speaker in English. I wish it would've been a half of all speeches and slides in English preferably for topics in Russian

I hope Selenium project will find outstanding contributors within 350 attendees auditory ... Though, when I checked out sources from selenium trunk, I utterly realised David Burns's words about project complexity and scale. For time being I do not fill I can consciously change something without breaking anything :), however, I fill the beginning of a long road to follow. I also really hope I am not the only one who feels the same.

Catch javascript errors with webdriver

Everyone would consider to have the way of catching JavaScript errors on site earlier or later.
Thanks a lot to Marc Guillemot’s blog for nice solution. You should include extension to your Firefox instance.
After this you might use your capabilities for remote webdriver
Besides,

Wednesday, 15 February 2012

How to maximize firefox or explorer window with webdriver

There are two reasons to regard the obvious, from the first point of view, topic. Despite the solution fits .net webdriver only, it is better than JavaScript approach since firefox window cannot be re-sized with it - that's the first reason. The second reason is the issue described here, and window maximizing partially solves it

Friday, 27 January 2012

Post condition: getting all the windows closed

We've got a separate remote pc for tests execution. I don't rdp there often, though once I do, I have to close lots of windows manually :(
That's because some of my tests have to deal with popups and new windows, however, only the current window got closed until I applied following post condition

Tuesday, 24 January 2012

How to automate Omniture Debugger. Omniture Debugger Page Object.

That is quite a task from the first point of view, taking into consideration that the debugger itself is javascript based. In addition the task gets a condition, when you know that the Omniture Debugger page actually does not stop loading at FireFox - it transfers data from some omniture host, so, please be the following solution works for IE only. Though, after all, I do not really care, because I do not tests omniture, I test properties are accessed by debugger
Let's review what do we have:
  • javascript that actually calls omniture debugger page. Normally you use it as a bookmark.
  • some page that is considered as a referrer to Omniture Debugger page
What we need to have at the end:
  • open Omniture Debugger page in a popup and switch to it
  • ensure that variable or property we are searching for exists on the page and has the appropriate value

Friday, 20 January 2012

hub.bat + webdriver.bat + JSON configuration

Hope someone will consider it helpful. Do not forget to resolve the ports at firewall.

hub.bat
@echo off
cd c:\selenium
java -jar selenium-server-standalone-2.14.0.jar -role hub
webdriver.bat
@echo off
cd c:\selenium
java -jar selenium-server-standalone-2.14.0.jar -role webdriver -nodeConfig myconfig.json -hub http://localhost:4444/grid/register