Workaround inconsistancy with element.click and element.fire_event('onClick')

Also fixed this for rank selector.
Also fixed css selectors.