robotframework / OldSeleniumLibrary

Deprecated Selenium library for Robot Framework
Apache License 2.0
13 stars 3 forks source link

The KW 'Confirm Action' does not work sometimes. #119

Closed spooning closed 9 years ago

spooning commented 9 years ago

Originally submitted to Google Code by wangcha... on 27 May 2010

OS: WinXp Pyton:2.6 Selenium:2.3.1 Browser:FF and IE

The KW 'Confirm Action' doesn't work in some scenarios. I don't know why, here are my observations. Maybe that helps.

  1. Work The current page contain the JS code like 'confirm (.....)'.
  2. Doesn't work The current page does not contain the JS code like 'confirm (.....)'. The confirm action is located on another page.
spooning commented 9 years ago

Originally submitted to Google Code by Andreas.EbbertKarroum on 28 May 2010

I assume that this is a limitation of Selenium itself. Have you tried that without Robot in between, say with the Selenium IDE alone?

Selenium intercepts calls to confirm(), and when than code is not on the page that selenium is managing, that it sounds logical to me, that you cannot confirm actions that result from calling confirm on other pages.

See selenium docs: http://release.seleniumhq.org/selenium-remote-control/1.0-beta-2/doc/python/selenium.selenium-class.html#get_confirmation

Andreas

spooning commented 9 years ago

Originally submitted to Google Code by @yanne on 15 Nov 2010

Closing this for lack of further of information.