Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

location of javascript code Empty location of javascript code

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
avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 39
Location : Denver, CO

location of javascript code Empty Re: location of javascript code

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
avatar
sunny mehndiratta
Regular Participant
Regular Participant
Posts : 25
Join date : 2013-03-22

location of javascript code Empty Re: location of javascript code

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???????
avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 39
Location : Denver, CO

location of javascript code Empty Re: location of javascript code

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.
avatar
sunny mehndiratta
Regular Participant
Regular Participant
Posts : 25
Join date : 2013-03-22

location of javascript code Empty Re: location of javascript code

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

location of javascript code Empty Re: location of javascript code

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