require "selenium-webdriver" driver = Selenium::WebDriver.for :firefox driver.manage.window.maximize driver.navigate.to "http://www.starofservice.ca/" element = driver.find_element(:xpath, 'html/body/div[1]/div[1]/div/div[2]/a[1]').click element = driver.find_element(:xpath, 'html/body/section/div/div[1]/div/div/div[1]/a').click Trying to write a test for the registration of the user. I refer to the element using xpath, but the test fails, writes that it will not find such an element. I tried the options find_element : name ,: link ,: css - does not find it. I tried to write a test version on Python , on Java - the result is the same. Moreover, if I point to an element on the left ( create an account ), everything is OK, it goes without problems every time. And the element create a Professional account does not want. What could be the reason? Link to the page? http://www.starofservice.ca/choose-account
