Share
Go down
sunny mehndiratta
Regular Participant
Regular Participant
Posts : 25
Join date : 2013-03-22

location of javascript code

on Fri Mar 22, 2013 4:21 pm
i have the same problem,

[warn] Opening window '_blank', which is not a real window name. Randomizing target to be: selenium_blank91080



n i have tried to put "storeallwindownames" but not able to correct it
CAN U TELL FROM WHERE ELSE I CAN FIND THE WINDOWS NAME



N HOW CAN I FIND JAVASCRIPT CODE



THANKS IN ADVANCE
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 33
Location : Denver, CO

Re: location of javascript code

on Fri Mar 22, 2013 11:19 pm
It sounds like your new window does not have an ID. When this happens, Selenium is creating a random name for that window. What does storeAllWindowNames return?
try:

storeAllWindowNames | windowNames
echo | ${windowNames}

storeAllWindowIds | windowIds
echo | ${windowIds}

storeAllWindowTitles | windowtitles
echo | ${windowtitles}

These are 3 different options to get the identifiers for this window. I believe these will store this in an array. Then you should be able to take the window's identifier as a variable from that array and select it. I've never done this before, but let me know what you get from these 3 echo commands.

-Cameron
sunny mehndiratta
Regular Participant
Regular Participant
Posts : 25
Join date : 2013-03-22

Re: location of javascript code

on Sat Mar 23, 2013 1:43 am
but after getting this how can i solve the problem,,,i mean where do i have to use these identifiers???????
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 33
Location : Denver, CO

Re: location of javascript code

on Sat Mar 23, 2013 3:04 am
These echo commands will tell you what the window's name, ID, or title is. The problem is Selenium is unable to tell what the window's name/ID/title is from the initial recording. Once you know what this identifier is you can set it as a variable and use the selectWindow command to change your focus to the new window.
sunny mehndiratta
Regular Participant
Regular Participant
Posts : 25
Join date : 2013-03-22

Re: location of javascript code

on Sun Mar 24, 2013 3:45 pm
thanks alot
Sponsored content

Re: location of javascript code

Back to top
Permissions in this forum:
You cannot reply to topics in this forum