Posts

Showing posts from August, 2013

Using Selenium WebDriver to select JSF/PrimeFaces selectOneMenu options

I'm using JBehave with Selenium WebDriver to test my PrimeFaces (JSF2) application. Selecting an option from a SelectOne option list isn't standard though because of the HTML markup generated by the JSF component. The facelets code to place the selectOneMenu uses the ID 'state': This generates HTML div blocks with id's prefixed with this components id: To select an option, I use a method which manipulates the appropriate divs - this can be used as illustrated below: To reuse this type of utility method, I put it in a base Page Object class:

Some user feedback

I was exporting my banking transactions the other day. It's a much more tedious process than it has to be and after using this for years and not seeing any updates to the site I thought I'd send some feedback - written as stories: As an Online Banking Customer, I want the system to remember my export preferences so that I can efficiently export my transactions ­  currently I have to set everything every time (even if you navigate from a selected account, you still have to pick an account) ­  file format (i.e CSV) ­  date format (dd/mm/yycc)  As an Online Banking Customer, I want to export transactions for all my accounts in one go so that I can efficiently export my transactions ­ so I don't have to do them one at a time ideally multiple accounts in one file  As an Online Banking Customer, I want to be able to access more than 12 months worth of transactions so that I don't have to export so often. ­  not much history is available online ­and transac