Do you get the same problem when testing the page manually?
Subject: [selenium-users] Selenium2 cannot located elements in iframe in cross-domain environment
Hi,
I'm running into an issue where I get redirected to another domain page where all the elementes are inside the iframe and my selenium2 script only finds first element out of x amount of elements specified. After that script fails since next element cannot be located. Ii've tried to locate other elements using all sorts of locators supported in Selenium2, as well as, using JavascriptExecutor - but same failure. One web-dev told me it could be possible due to iframes and cross-domain environment.
Please recommend a solution.
Thanks
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
Yes that is true. I also faced the same problem.
Ask your developers to make the iframe also in same domain. I think it is small change in JS for developers.
On Sat, Jul 21, 2012 at 1:22 PM, Peter Gale <peterjef...@hotmail.co.uk> wrote:
Do you get the same problem when testing the page manually?
Subject: [selenium-users] Selenium2 cannot located elements in iframe in cross-domain environment
Hi,
I'm running into an issue where I get redirected to another domain page where all the elementes are inside the iframe and my selenium2 script only finds first element out of x amount of elements specified. After that script fails since next element cannot be located. Ii've tried to locate other elements using all sorts of locators supported in Selenium2, as well as, using JavascriptExecutor - but same failure. One web-dev told me it could be possible due to iframes and cross-domain environment.
Please recommend a solution.
Thanks
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/_aBd7HSRr3sJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
Have you tried to first switch to the iframe and than look for elements inside it?
On Sun, Jul 22, 2012 at 11:45 AM, santoshsarma jayanthi <santosh...@gmail.com> wrote:
Yes that is true. I also faced the same problem.
Ask your developers to make the iframe also in same domain. I think it is small change in JS for developers.
On Sat, Jul 21, 2012 at 1:22 PM, Peter Gale <peterjef...@hotmail.co.uk> wrote:
Do you get the same problem when testing the page manually?
Subject: [selenium-users] Selenium2 cannot located elements in iframe in cross-domain environment
Hi,
I'm running into an issue where I get redirected to another domain page where all the elementes are inside the iframe and my selenium2 script only finds first element out of x amount of elements specified. After that script fails since next element cannot be located. Ii've tried to locate other elements using all sorts of locators supported in Selenium2, as well as, using JavascriptExecutor - but same failure. One web-dev told me it could be possible due to iframes and cross-domain environment.
Please recommend a solution.
Thanks
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/_aBd7HSRr3sJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
If you google "iframe" and "cross-domain environments" you'll find a stack load of references that indicate this is a common problem (not just for Selenium) which can be addressed by more considerate development practices. So it seems to me that the developers are the people best placed to help you with this issue.
Do they acknowledge that they could make a change that would resolve the problem, and that it wouldn't adversely affect the functionality of the site?
If so, it seems very un-"team spirited" of them.
Have you googled "selenium iframes cross-domain environment"?
The second result turned up this link: http://code.google.com/p/selenium/issues/detail?id=2002 ... and a potential workaround.
Is the page externally available?
From: seleniu...@googlegroups.com [mailto:seleniu...@googlegroups.com] On Behalf Of simply_tester
Sent: 23 July 2012 23:53
To: seleniu...@googlegroups.com
Subject: Re: [selenium-users] Selenium2 cannot located elements in iframe in cross-domain environment
I actually run through recommended steps in that link last week before creating this post. Unfortunately, that solution did not for me. I tried both of them. The main difference in here is that person who created that task had his FF and Chrome work fine. In my case, both of them as well as IE fail to locate the element.
On Monday, July 23, 2012 3:49:50 PM UTC-7, simply_tester wrote:
Thanks for the suggestion. Let me take a look at the link you have provided and see if that may work. Thanks again.
On Monday, July 23, 2012 1:14:57 PM UTC-7, PeterJef...@Hotmail.co.uk wrote:
If you google "iframe" and "cross-domain environments" you'll find a stack load of references that indicate this is a common problem (not just for Selenium) which can be addressed by more considerate development practices. So it seems to me that the developers are the people best placed to help you with this issue.
Do they acknowledge that they could make a change that would resolve the problem, and that it wouldn't adversely affect the functionality of the site?
If so, it seems very un-"team spirited" of them.
Have you googled "selenium iframes cross-domain environment"?
The second result turned up this link: http://code.google.com/p/selenium/issues/detail?id=2002 ... and a potential workaround.
Date: Mon, 23 Jul 2012 11:16:35 -0700
From: dan...@gmail.com
Subject: Re: [selenium-users] Selenium2 cannot located elements in iframe in cross-domain environment
Hi,
Thanks for replying. The problem is that devs won't make such change in order for me to test, I need to find a solution to test the way it is :)
Thanks,
On Saturday, July 21, 2012 11:15:18 PM UTC-7, SantoshSarma wrote:
Yes that is true. I also faced the same problem.
Ask your developers to make the iframe also in same domain. I think it is small change in JS for developers.
On Sat, Jul 21, 2012 at 1:22 PM, Peter Gale <peterjef...@hotmail.co.uk> wrote:
Do you get the same problem when testing the page manually?
Date: Fri, 20 Jul 2012 17:59:21 -0700
From: dan...@gmail.com
Subject: [selenium-users] Selenium2 cannot located elements in iframe in cross-domain environment
Hi,
I'm running into an issue where I get redirected to another domain page where all the elementes are inside the iframe and my selenium2 script only finds first element out of x amount of elements specified. After that script fails since next element cannot be located. Ii've tried to locate other elements using all sorts of locators supported in Selenium2, as well as, using JavascriptExecutor - but same failure. One web-dev told me it could be possible due to iframes and cross-domain environment.
Please recommend a solution.
Thanks
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/_aBd7HSRr3sJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/QzPmL8Ci0IwJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/3zmwSZjmZu0J.
That's a completely different error message so not the same problem at all.
Please start a new thread and provide all the usual stuff we ask for to let us help you (see other threads for details).
Subject: Re: [selenium-users] Selenium2 cannot located elements in iframe in cross-domain environment
I am having the same issue. I trying to type into iframe element, which is a rich text editor by running automation test. But, when I am trying to locate the element, I am getting this error.
Selenium.SeleniumException: ERROR: Command execution failure. Please search the user group at https://groups.google.com/forum/#!forum/selenium-users for error details from the log window. The error message is: Permission denied for </*link to the webpage I am testing*/ > to set property HTMLScriptElement.type
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
That’s nice.
I would suggest you start a new thread outlining your problem and providing us with your test code and the HTML of the site you are testing.
This will get you a much faster and more relevant response.
From: seleniu...@googlegroups.com [mailto:seleniu...@googlegroups.com] On Behalf Of Bug buster
Sent: 24 July 2012 14:45
To: seleniu...@googlegroups.com
Subject: Re: [selenium-users] Selenium2 cannot located elements in iframe in cross-domain environment
Actually, the error the error I got, while running the automation test diverted my to this forum.
On Tuesday, July 24, 2012 2:22:41 AM UTC-5, PeterJef...@Hotmail.co.uk wrote:
That's a completely different error message so not the same problem at all.
Please start a new thread and provide all the usual stuff we ask for to let us help you (see other threads for details).
Date: Mon, 23 Jul 2012 12:31:16 -0700
From: ketu...@gmail.com
Subject: Re: [selenium-users] Selenium2 cannot located elements in iframe in cross-domain environment
I am having the same issue. I trying to type into iframe element, which is a rich text editor by running automation test. But, when I am trying to locate the element, I am getting this error.
Selenium.SeleniumException: ERROR: Command execution failure. Please search the user group at https://groups.google.com/forum/#!forum/selenium-users for error details from the log window. The error message is: Permission denied for </*link to the webpage I am testing*/ > to set property HTMLScriptElement.type
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/4VJn9QjU3dQJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/zEPZzhhVIhQJ.
I also faced the same problem but when i switched to the frame then it worked for me.
Try to switch as below:
driver.switchTo().frame(Webelement);
On Tuesday, July 24, 2012 1:32:46 PM UTC+5:30, Mark Collin wrote:
Is the page externally available?
From: selenium-users@googlegroups.com [mailto:selenium-users@googlegroups.com] On Behalf Of simply_tester
Sent: 23 July 2012 23:53
To: selenium-users@googlegroups.com
Subject: Re: [selenium-users] Selenium2 cannot located elements in iframe in cross-domain environment
I actually run through recommended steps in that link last week before creating this post. Unfortunately, that solution did not for me. I tried both of them. The main difference in here is that person who created that task had his FF and Chrome work fine. In my case, both of them as well as IE fail to locate the element.
On Monday, July 23, 2012 3:49:50 PM UTC-7, simply_tester wrote:Thanks for the suggestion. Let me take a look at the link you have provided and see if that may work. Thanks again.
On Monday, July 23, 2012 1:14:57 PM UTC-7, PeterJef...@Hotmail.co.uk wrote:
If you google "iframe" and "cross-domain environments" you'll find a stack load of references that indicate this is a common problem (not just for Selenium) which can be addressed by more considerate development practices. So it seems to me that the developers are the people best placed to help you with this issue.
Do they acknowledge that they could make a change that would resolve the problem, and that it wouldn't adversely affect the functionality of the site?
If so, it seems very un-"team spirited" of them.
Have you googled "selenium iframes cross-domain environment"?
The second result turned up this link: http://code.google.com/p/selenium/issues/detail?id=2002 ... and a potential workaround.
Date: Mon, 23 Jul 2012 11:16:35 -0700
From: dan...@gmail.com
Subject: Re: [selenium-users] Selenium2 cannot located elements in iframe in cross-domain environment
Hi,
Thanks for replying. The problem is that devs won't make such change in order for me to test, I need to find a solution to test the way it is :)
Thanks,
On Saturday, July 21, 2012 11:15:18 PM UTC-7, SantoshSarma wrote:
Yes that is true. I also faced the same problem.
Ask your developers to make the iframe also in same domain. I think it is small change in JS for developers.
On Sat, Jul 21, 2012 at 1:22 PM, Peter Gale <peterjef...@hotmail.co.uk> wrote:
Do you get the same problem when testing the page manually?
Date: Fri, 20 Jul 2012 17:59:21 -0700
From: dan...@gmail.com
Subject: [selenium-users] Selenium2 cannot located elements in iframe in cross-domain environment
Hi,
I'm running into an issue where I get redirected to another domain page where all the elementes are inside the iframe and my selenium2 script only finds first element out of x amount of elements specified. After that script fails since next element cannot be located. Ii've tried to locate other elements using all sorts of locators supported in Selenium2, as well as, using JavascriptExecutor - but same failure. One web-dev told me it could be possible due to iframes and cross-domain environment.
Please recommend a solution.
Thanks
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/_aBd7HSRr3sJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/QzPmL8Ci0IwJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
Is the page externally available?
From: selenium-users@googlegroups.com [mailto:selenium-users@googlegroups.com] On Behalf Of simply_tester
Sent: 23 July 2012 23:53
To: selenium-users@googlegroups.com
Subject: Re: [selenium-users] Selenium2 cannot located elements in iframe in cross-domain environment
I actually run through recommended steps in that link last week before creating this post. Unfortunately, that solution did not for me. I tried both of them. The main difference in here is that person who created that task had his FF and Chrome work fine. In my case, both of them as well as IE fail to locate the element.
On Monday, July 23, 2012 3:49:50 PM UTC-7, simply_tester wrote:Thanks for the suggestion. Let me take a look at the link you have provided and see if that may work. Thanks again.
On Monday, July 23, 2012 1:14:57 PM UTC-7, PeterJef...@Hotmail.co.uk wrote:
If you google "iframe" and "cross-domain environments" you'll find a stack load of references that indicate this is a common problem (not just for Selenium) which can be addressed by more considerate development practices. So it seems to me that the developers are the people best placed to help you with this issue.
Do they acknowledge that they could make a change that would resolve the problem, and that it wouldn't adversely affect the functionality of the site?
If so, it seems very un-"team spirited" of them.
Have you googled "selenium iframes cross-domain environment"?
The second result turned up this link: http://code.google.com/p/selenium/issues/detail?id=2002 ... and a potential workaround.
Date: Mon, 23 Jul 2012 11:16:35 -0700
From: dan...@gmail.com
Subject: Re: [selenium-users] Selenium2 cannot located elements in iframe in cross-domain environment
Hi,
Thanks for replying. The problem is that devs won't make such change in order for me to test, I need to find a solution to test the way it is :)
Thanks,
On Saturday, July 21, 2012 11:15:18 PM UTC-7, SantoshSarma wrote:
Yes that is true. I also faced the same problem.
Ask your developers to make the iframe also in same domain. I think it is small change in JS for developers.
On Sat, Jul 21, 2012 at 1:22 PM, Peter Gale <peterjef...@hotmail.co.uk> wrote:
Do you get the same problem when testing the page manually?
Date: Fri, 20 Jul 2012 17:59:21 -0700
From: dan...@gmail.com
Subject: [selenium-users] Selenium2 cannot located elements in iframe in cross-domain environment
Hi,
I'm running into an issue where I get redirected to another domain page where all the elementes are inside the iframe and my selenium2 script only finds first element out of x amount of elements specified. After that script fails since next element cannot be located. Ii've tried to locate other elements using all sorts of locators supported in Selenium2, as well as, using JavascriptExecutor - but same failure. One web-dev told me it could be possible due to iframes and cross-domain environment.
Please recommend a solution.
Thanks
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/_aBd7HSRr3sJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/QzPmL8Ci0IwJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
Unfortnately, many people draw the line at creating yet another user account.
Is the page externally available?
From: selenium-users@googlegroups.com [mailto:selenium-users@googlegroups.com] On Behalf Of simply_tester
Sent: 23 July 2012 23:53
To: selenium-users@googlegroups.com
Subject: Re: [selenium-users] Selenium2 cannot located elements in iframe in cross-domain environment
I actually run through recommended steps in that link last week before creating this post. Unfortunately, that solution did not for me. I tried both of them. The main difference in here is that person who created that task had his FF and Chrome work fine. In my case, both of them as well as IE fail to locate the element.
On Monday, July 23, 2012 3:49:50 PM UTC-7, simply_tester wrote:Thanks for the suggestion. Let me take a look at the link you have provided and see if that may work. Thanks again.
On Monday, July 23, 2012 1:14:57 PM UTC-7, PeterJef...@Hotmail.co.uk wrote:
If you google "iframe" and "cross-domain environments" you'll find a stack load of references that indicate this is a common problem (not just for Selenium) which can be addressed by more considerate development practices. So it seems to me that the developers are the people best placed to help you with this issue.
Do they acknowledge that they could make a change that would resolve the problem, and that it wouldn't adversely affect the functionality of the site?
If so, it seems very un-"team spirited" of them.
Have you googled "selenium iframes cross-domain environment"?
The second result turned up this link: http://code.google.com/p/selenium/issues/detail?id=2002 ... and a potential workaround.
Date: Mon, 23 Jul 2012 11:16:35 -0700
From: dan...@gmail.com
Subject: Re: [selenium-users] Selenium2 cannot located elements in iframe in cross-domain environment
Hi,
Thanks for replying. The problem is that devs won't make such change in order for me to test, I need to find a solution to test the way it is :)
Thanks,
On Saturday, July 21, 2012 11:15:18 PM UTC-7, SantoshSarma wrote:
Yes that is true. I also faced the same problem.
Ask your developers to make the iframe also in same domain. I think it is small change in JS for developers.
On Sat, Jul 21, 2012 at 1:22 PM, Peter Gale <peterjef...@hotmail.co.uk> wrote:
Do you get the same problem when testing the page manually?
Date: Fri, 20 Jul 2012 17:59:21 -0700
From: dan...@gmail.com
Subject: [selenium-users] Selenium2 cannot located elements in iframe in cross-domain environment
Hi,
I'm running into an issue where I get redirected to another domain page where all the elementes are inside the iframe and my selenium2 script only finds first element out of x amount of elements specified. After that script fails since next element cannot be located. Ii've tried to locate other elements using all sorts of locators supported in Selenium2, as well as, using JavascriptExecutor - but same failure. One web-dev told me it could be possible due to iframes and cross-domain environment.
Please recommend a solution.
Thanks
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/_aBd7HSRr3sJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/QzPmL8Ci0IwJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.