Click does nothing when the link element is inside the nested frame
-------------------------------------------------------------------

                 Key: WTR-447
                 URL: http://jira.openqa.org/browse/WTR-447
             Project: Watir
          Issue Type: Bug
          Components: Frame
    Affects Versions: 1.6.5
         Environment: operating system: XP
watir-webdriver 0.02
watir 1.6.5
selenium-webdriver 0.0.24
Browser: Chrome 6.0
            Reporter: christine cheng
            Priority: Blocker


We are trying to find a tool that support web application automation test on 
googlechrome and safari, and just start investigating Watir. We experienced a 
blocker issue that some click are not working when running on Windows XP. The 
same code works fine on Linux. Here is the scenario:
1. Instruct my web app to the point where a link can be clicked, this page 
contains nested frames.
2. Call element_by_xpath to get the element, calling click() does nothing.

I tried the same code against firefox using firewatir, no problem.

The code snippet:

require 'rubygems'
require 'selenium-webdriver'
require 'watir-webdriver'

b = Watir::Browser.new(:chrome)
test_site = "http://<server url>/index.html"
b.goto test_site
sleep 3
b.frame(:name, "TICKET").link(:text,"Login or Sign Up.").click

If I output b.frame(:name, "TICKET").link(:text,"Login or Sign Up.").href, it 
returns correct value. 







-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to