Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

location of javascript code

View previous topic View next topic Go down

location of javascript code

Post by sunny mehndiratta 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

sunny mehndiratta
Regular Participant
Regular Participant

Posts : 25
Join date : 2013-03-22

Back to top Go down

Re: location of javascript code

Post by ccox 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

ccox
Master
Master

Posts : 205
Join date : 2012-01-06
Age : 31
Location : Denver, CO

Back to top Go down

Re: location of javascript code

Post by sunny mehndiratta 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???????

sunny mehndiratta
Regular Participant
Regular Participant

Posts : 25
Join date : 2013-03-22

Back to top Go down

Re: location of javascript code

Post by ccox 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.

ccox
Master
Master

Posts : 205
Join date : 2012-01-06
Age : 31
Location : Denver, CO

Back to top Go down

Re: location of javascript code

Post by sunny mehndiratta on Sun Mar 24, 2013 3:45 pm

thanks alot

sunny mehndiratta
Regular Participant
Regular Participant

Posts : 25
Join date : 2013-03-22

Back to top Go down

Re: location of javascript code

Post by Sponsored content Today at 11:54 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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