Hi. Hope someone can help. I am new to software testing and exploring the features in Selenium 0.6.0.

 

I’m trying to get the fireEvent action to open a new page on a website using an onclick function but Selenium is telling me there is a failure.

 

The message in the log console is listed below

 

·                                 Executing: |open | http://uat.pandanet.coop/cooptravel | |

·                                Executing: |fireEvent | Header1_Skiing_link | onclick |

·                                Unexpected Exception: name -> Error, number -> -2147024809, description -> Invalid argument., message -> Invalid argument.

 

The HTML code concerned is listed below

 

                                              <td class="rollover_tabs_small" id="Skiing" vAlign="top"><a href="Controls/#" id="Header1_Skiing_link" onclick="window.open('http://www.whichski.co.uk', 'headerlink_Ski'); return false;">ski</a>
                                              </td>
 
What would be the best way to open this page? Use the clickAndWait action or the onClick? (When the new window opens I will be performing some tests in the newly opened window)

 

 

Thanks in anticipation

 

Terry Simpson mailto: [EMAIL PROTECTED]

 


Co-operative IT is part of The Midcounties Co-operative

West Midlands Co-operative Society (WMCS) and Oxford, Swindon and Gloucester Co-operative Society (OSG) have merged to form The Midcounties Co-operative.

The information contained in this e-mail is confidential and is intended solely for the named recipient(s) only. If you are not the named recipient(s) you should not disseminate, distribute or copy this e-mail. If you have received this email in error please notify us by telephone on (+44 ) 0845 4585 650 immediately and delete the message and any copies from your computer. The Midcounties Co-operative has taken every reasonable precaution to ensure that any attachment to this e-mail has been checked for viruses. However, we cannot accept liability for any damage sustained as a result of any such software viruses and advise you to carry out your own virus check before opening any attachment. Furthermore, we do not accept responsibility for any change made to this message after it was sent by the sender.
_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to