Not able to go back to my main window...

2,252 views
Skip to first unread message

Raj

unread,
Jun 7, 2014, 9:58:42 AM6/7/14
to robotframe...@googlegroups.com

Hi ,

I opened and close the popup window, Still I have two windows I want to go back to my main window but its failing  with below error:

FAIL NoSuchWindowException: Message: u'Window not found. The browser window may have been closed.' ; Stacktrace: at nsCommandProcessor.prototype.execute (file:///c:/users/ibm_ad~1/appdata/local/temp/tmpkmnov9/webdriver-py-profilecopy/extensions/fxdr...@googlecode.com/components/command_processor.js:10924)


Here is my code:
Click to open Add Object
    Wait Until Page Contains Element    ${Add_OBJECT}   
    Click Element    ${Add_OBJECT}   
    ${Select}=    Select Window    ${ADD_OBJECT_WINDOW}
    Click Button    ${CANCEL_BUTTON}  --> popup window got closed.
    Select Window    url=http://9.52.98.80/mainui.jsp--------------------->Its failing getting above error


I tried with title also:
Click to open Add Object
    Wait Until Page Contains Element    ${Add_OBJECT}   
    Click Element    ${Add_OBJECT}   
    ${Select}=    Select Window    ${ADD_OBJECT_WINDOW}
    Click Button    ${CANCEL_BUTTON}  --> popup window got closed.
    Select Window    title=abc --------------------->Its failing getting above error

I tried with browser index also if I give Switch Browser   1
Click to open Add Object
    Wait Until Page Contains Element    ${Add_OBJECT}   
    Click Element    ${Add_OBJECT}   
    ${Select}=    Select Window    ${ADD_OBJECT_WINDOW}
    Click Button    ${CANCEL_BUTTON}  --> popup window got closed.
    Switch Browser   1 ..........................> its saying Switches between active browsers using index but when I try to select my main window i will get above error.

Below is the output:

KEYWORD: ${Select} = Selenium2Library.Select Window ${ADD_OBJECT_WINDOW} Expand All
KEYWORD: Selenium2Library.Click Button ${CANCEL_BUTTON} Expand All
KEYWORD: Selenium2Library.Switch Browser 1
Documentation:    
Switches between active browsers using index or alias.
Start / End / Elapsed:     20140607 19:12:36.801 / 20140607 19:12:36.802 / 00:00:00.001

But after this I am trying to select the window Its saying " NoSuchWindowException:"


Below is the configuration:

C:\Python27\Scripts>pybot --version
Robot Framework 2.8.2 (Python 2.7.6 on win32)
robotframework_selenium2library-1.4.0-py2.7.egg
selenium-2.37.2-py2.7.egg
Firefox 24.2.0


Thanks in Advance!!!!

Tatu Aalto

unread,
Jun 8, 2014, 8:04:29 AM6/8/14
to devgu...@gmail.com, robotframe...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Raj

unread,
Jun 16, 2014, 8:49:11 AM6/16/14
to robotframe...@googlegroups.com
Hi Tatu, Its working now
Thanks a lot!!!



On Saturday, June 7, 2014 7:28:42 PM UTC+5:30, Raj wrote:

Hi ,

I opened and close the popup window, Still I have two windows I want to go back to my main window but its failing  with below error:

FAIL NoSuchWindowException: Message: u'Window not found. The browser window may have been closed.' ; Stacktrace: at nsCommandProcessor.prototype.execute (file:///c:/users/ibm_ad~1/appdata/local/temp/tmpkmnov9/webdriver-py-profilecopy/extensions/fxdriver@googlecode.com/components/command_processor.js:10924)

Faik Faisal

unread,
Jan 29, 2015, 4:45:36 PM1/29/15
to robotframe...@googlegroups.com
How did you resolve this? I am getting the same error.


On Saturday, June 7, 2014 at 9:58:42 AM UTC-4, Raj wrote:

Hi ,

I opened and close the popup window, Still I have two windows I want to go back to my main window but its failing  with below error:

FAIL NoSuchWindowException: Message: u'Window not found. The browser window may have been closed.' ; Stacktrace: at nsCommandProcessor.prototype.execute (file:///c:/users/ibm_ad~1/appdata/local/temp/tmpkmnov9/webdriver-py-profilecopy/extensions/fxdriver@googlecode.com/components/command_processor.js:10924)

Tatu Aalto

unread,
Jan 31, 2015, 8:28:45 AM1/31/15
to robotframe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages