Archive for March, 2010

How to drag and drop to a hidden target using selenium

Wednesday, March 24th, 2010

See the update at the bottom on this post. Inspired by this posting by Pat Nakajima to execute the javascript to show an element before doing drag and drop.

Getting value from xpath query with and without selenium

Tuesday, March 2nd, 2010

Using cucumber with webrat is not the same as using them with selenium. I found this out the hard way. In tracks, you have the ‘badge’ in the top-left corner which shows the number of items on the page. To check the number increases or decreases you want to retrieve the value of the badge. […]

Drag and drop in cucumber with selenium

Tuesday, March 2nd, 2010

I needed to show a bug using a cucumber script which includes drag and drop. Turned out to be difficult for several reasons drag and drop is not supported by webrat for selenium ‘within’ for scoping is not supported by webrat for selenium this made the feature difficult to quickly specifiy. The feature contains: […] […]