Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Click on element in iframe does nothing in IE driver #2387

Closed
lukeis opened this issue Mar 3, 2016 · 19 comments
Closed

Click on element in iframe does nothing in IE driver #2387

lukeis opened this issue Mar 3, 2016 · 19 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 3, 2016

Originally reported on Google Code with ID 2387


What steps will reproduce the problem?
1.Access the url : http://developer.linkedin.com/apply-linkedin
2.click on Apply with Linkedin button
3.click on sign in button inside the modal iframe

What is the expected output? What do you see instead?
sign in button click should effect in a sign in pop up form

Instead nothing happens ( I think it goes and clicks on cancel button/ or outside the
frame, so the frame goes away). 


Selenium version:selenium standalone jar 2.4.0
OS:Windows XP 2002, SP 3 ( screen size set to large - 1280 X 696 pixels)
Browser: IE ,
Brower version: 8.0

test script attached.

More info - 

1) It is able to return and identify all the attributes of the sign in button within
the iframe in both the drivers
2)  location calculated by the driver is same for both IE and FF driver, but click
does not work on IE, but does not throw any exception.

related thread - http://code.google.com/p/selenium/issues/detail?id=414 ( but I have
made sure that button is not near view port) 

Reported by deivanai on 2011-09-02 00:24:35

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

attaching the test script

Reported by deivanai on 2011-09-02 00:27:35


- _Attachment: [web_driver_link_click_bug.rb](https://storage.googleapis.com/google-code-attachments/selenium/issue-2387/comment-1/web_driver_link_click_bug.rb)_

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by dawagner on 2011-09-08 13:10:23

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Does this work in Firefox? 

Reported by eran.mes on 2011-09-19 16:39:47

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

yes, it works fine in FF.

Reported by deivanai on 2011-09-20 00:14:26

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by barancev on 2011-10-13 08:41:38

  • Labels added: Component-WebDriver, Browser-IE

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I too face this issue. Webdriver didn't perform any actions when clicking on an element
in iframe only in IE.Is there any workaround to get rid off this issue.

Reported by gmanavalan@paypal.com on 2011-12-13 17:46:44

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I too face problem For IE-9.
Please let me know any solution for this.

Reported by badyacool on 2011-12-21 06:20:06

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I too face this issue. Webdriver not able to switch to iframe. It is throwing an error
"No such window execption".

Please find the steps to reproduce this issue:
1.Navigate to http://digitalmagazine.autosport.com/
2.Click on "pay with paypal" button. This will popup a iframe window.
3.Try to navigate to iframe (WebElement frame = Grid.driver().findElementByName("PPDGFrame");Grid.driver().switchTo().frame(frame);

Actual result:
Webdriver is throwing an exception "No such window exception".

Reported by meksparks on 2012-05-17 12:09:08

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Issue 3928 has been merged into this issue.

Reported by barancev on 2012-05-18 20:28:45

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I could reproduce it (I hope I've reproduced the same issue the author had :) )

Groovy code:

driver = new InternetExplorerDriver()
driver.manage().timeouts().implicitlyWait(10, java.util.concurrent.TimeUnit.SECONDS)
driver.get("http://developer.linkedin.com/apply-linkedin")
driver.findElement(By.cssSelector("span[id\$='title-text']")).click()
driver.switchTo().frame(0)
driver.switchTo().frame(0)
Thread.sleep(5000) // popup is moving
element = driver.findElement(By.cssSelector("a.btn-new-primary"))
element.click()

At the very last moment, immediately before click, selenium scrolls the page (or the
frame?) and click misses the target.

Reported by barancev on 2012-06-02 18:31:54

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Hi Guys,

The switching of frame is working fine with Firefox but when i use with IE,the webdriver
is throwing error which is 


org.openqa.selenium.NoSuchFrameException: No frame found (WARNING: The server did not
provide any stacktrace information)
Command duration or timeout: 15 milliseconds
Build info: version: '2.21.0', revision: '16552', time: '2012-04-11 19:09:00'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version:
'1.6.0_31'
Driver info: driver.version: RemoteWebDriver


Please provide input if it is a bug in webdriver?


Regards
Usman

Reported by usmanafzal165 on 2012-06-21 08:50:23

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I see the same error with IE8 and Selenium latest release. IE frame components are not
recognized. Please let me know work around for this problem.

Reported by santhosh.mankala on 2012-09-05 22:49:56

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I have the same issue. ON IE browsers, selenium cannot click on some elements inside
the iframes. It will be nice to have a solution to this problem.

Thanks

Reported by usharj on 2012-09-19 21:20:50

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Is this issue related to http://code.google.com/p/selenium/issues/detail?id=4618 ?

Reported by codywmack on 2012-10-02 15:30:09

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I'm suffering from the same problem. Did anybody find a solution ?
At the moment I found a partial workaround with using execute_script (I'm using python
bindings):

   browser.execute_script('argument[0].click()', element)

However with this appoach I see that unlike element.click() this method terminates
almost immediately forcing me to adding magical sleep() after. Does anybody know a
better way ?

Reported by kowalski0123 on 2012-10-23 12:01:06

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Even i am facing the same issue , this issue is very critical as all popup contains
iframe, plz fix this as soon as possble

Reported by ganeshmandala on 2013-02-21 18:53:17

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

This issue exist only in IE plz fix this

Reported by ganeshmandala on 2013-02-21 18:54:33

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

This issue was closed by revision bf7d40002003.

Reported by james.h.evans.jr on 2013-02-22 19:42:05

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by luke.semerau on 2015-09-17 18:13:38

  • Labels added: Restrict-AddIssueComment-Commit

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant