I can do it by xpath, but I wonder if there is other ways ?
I would suggest you, try using
cssSelector which would be much faster than
xpath to locate an element as :-
driver.find_element(:css, "div#anonymous > a[rel='IDS_login']").click
You can also locate this element using
link_text as :-