I started to learn ruby (rspec , rubymine). I want to do simple click action but I have a problem. Id and name does not exist so, I should use xpath or css.
I tried #click on contact link:
driver.find_element(:css, 'html>body>footer>div>div>section:nth-child(3)>a:nth-child(1)').click + ' :: absolute path'
xpath showed me:
/x:html/x:body/x:footer/x:div/x:div/x:section[3]/x:a[1]
link is:
<a href="/k/k.aspx?action=custserv&topic=contact" title="Contakt ">Contact</a>
and this is FIRST link in:
section class="link-block link-collection col-xs-12 col-sm-4 col-md-2"
and section class is placed in div: class="row"
and this is here: <footer class="footer" role="info">
and this is inside: <body data-touch="false" class="abc">
Can anybody help me?