When I tried to perform automated search on amazon.com, It throws exception ‘Element Not Found’ even thought the element is present. I am trying to access search textbox by its ID.
Following are some observation of it:
- Amazon search page has proper ID for search components But still Selenium was not able to locate the element, throws exception ‘Element Not Found’.
- If you put some delay after loading the Amazon website, Then try to locate the element, throws exception ‘Window Not Found’.
- When I tried to get the page source using Selenium Driver, It was not able fetch correct source also. I got the source of the html page which get displayed immediately after IE opened.
I suspect that amazon loads some javascript to prevent automated access, I am not sure.
Any suggestion would be appreciated to resolve this issue.
Please do share your experience if anyone faced such issue before.
Thanks.
Works for me ..
This opens the IE 8 window and types in cheese into the search box. Note : I am on webdriver 2.25 and have the latest IEDriver downloaded from here.
Hope you have set the protected mode to enabled or same for all security zones in your IE settings.