Error while runiing on Chrome (Testwise , selenium-webdriver, RSpec)

18 views
Skip to first unread message

Mohan MK

unread,
Jan 16, 2015, 1:38:40 PM1/16/15
to test...@googlegroups.com

Hi All,

I am new using selenium-webdriver. Using Testwise , selenium-webdriver, RSpec to trying to automate http://store.apple.com/us/buy-ipad/ipad-air-2 site
basically the combination of Finish, Storage and Connectivity and verifying the summary generated.

@browser.find_element(:id, "Item1silver").click
@browser.find_element(:id, "Item216gb").click
@browser.find_element(:id, "Item3wifi").click

Summary i get would be : iPad Air 2 Wi-Fi 16GB - Silver

_______________________________________________________________________________________________________

Problem is, i am sucessfully able to run the script on FireFox, but when i run the same on Chrome i get following error

F
Failures:
1) Test Suite New Test Case
Failure/Error: @browser.find_element(:id, Item1silver).click
Selenium::WebDriver::Error::UnknownError:
unknown error: Element is not clickable at point (712, 406). Other element would receive the click:
...
(Session info: chrome=39.0.2171.95)
(Driver info: chromedriver=2.13.307647 (5a7d0541ebc58e69994a6fb2ed930f45261f3c29),platform=Windows NT 6.1 SP1 x86)

is there any better way than browser.find_element that i can use so that the script runs on both FireFox as well as Chrome.

Please let me know. Thanks in advance

M.K.Mohan

Zhimin

unread,
Mar 6, 2015, 6:05:44 PM3/6/15
to test...@googlegroups.com

The common reason for  " Element is not clickable " error is  that the web browser may still in rendering mode.   Add some sleeps or try_for waits. 

browser.find_element is the most common way in Selenium WebDriver to locate an element, it does work well. 
Reply all
Reply to author
Forward
0 new messages