Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Status-Untriaged

New issue 5780 by francisc...@gmail.com: WebElementProxy objects calling
the FindElements method cause StackOverflowException
http://code.google.com/p/selenium/issues/detail?id=5780

First off all, I hope this is the right place for reporting the bug I
found. I'm use a lot of OpenSource technology, but -- unfourtunatelly --
rarely contribute. Please forgive any mistakes.


Description
===========

When using the FindsBy attribute to implement the PageObject pattern
provided by WebDriver.Support, it is not possible to call the FindElements
method.

I have looked at this code
https://github.com/SeleniumHQ/selenium/blob/master/dotnet/src/WebDriver.Support/PageObjects/WebElementProxy.cs

And there is no implementation for FindElements. I believe this is the
problem.


...
Steps to reproduce
==================

// definition:
[FindsBy(How = How.CssSelector, Using = "body")]
public IWebElement body { get; set; }

//Call to PageFactory.InitElements occur normally at some point

//Actual call
body.FindElements(By.CssSelector("img"));


Expected
========

A collection of IWebElement objects.

Actual
======

Stack Overflow. Program crashes. Debbuging in VS 2012 is terminated.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups "Selenium Developer Activity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-developer-activity+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-developer-activity@googlegroups.com.
Visit this group at http://groups.google.com/group/selenium-developer-activity.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Selenium at Jun 15, 2013 at 7:33 am
    Updates:
      Status: NeedsClarification
      Labels: -Status-Untriaged

    Comment #1 on issue 5780 by james.h....@gmail.com: WebElementProxy objects
    calling the FindElements method cause StackOverflowException
    http://code.google.com/p/selenium/issues/detail?id=5780

    This issue looks remarkably similar to #5306 (and #5434 and #5437), which
    was fixed in 2.32.0 of the .NET bindings. What version of the bindings are
    you using?

    --
    You received this message because this project is configured to send all
    issue notifications to this address.
    You may adjust your notification preferences at:
    https://code.google.com/hosting/settings

    --
    You received this message because you are subscribed to the Google Groups "Selenium Developer Activity" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to selenium-developer-activity+unsubscribe@googlegroups.com.
    To post to this group, send email to selenium-developer-activity@googlegroups.com.
    Visit this group at http://groups.google.com/group/selenium-developer-activity.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Selenium at Aug 6, 2013 at 9:50 am
    Updates:
      Labels: Component-WebDriver Lang-CSharp

    Comment #2 on issue 5780 by a.u.savchuk: WebElementProxy objects calling
    the FindElements method cause StackOverflowException
    http://code.google.com/p/selenium/issues/detail?id=5780

    (No comment was entered for this change.)

    --
    You received this message because this project is configured to send all
    issue notifications to this address.
    You may adjust your notification preferences at:
    https://code.google.com/hosting/settings

    --
    You received this message because you are subscribed to the Google Groups "Selenium Developer Activity" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to selenium-developer-activity+unsubscribe@googlegroups.com.
    To post to this group, send email to selenium-developer-activity@googlegroups.com.
    Visit this group at http://groups.google.com/group/selenium-developer-activity.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Selenium at Aug 6, 2013 at 2:57 pm
    Updates:
      Status: Fixed

    Comment #3 on issue 5780 by james.h....@gmail.com: WebElementProxy objects
    calling the FindElements method cause StackOverflowException
    http://code.google.com/p/selenium/issues/detail?id=5780

    No response in over six weeks. Similar issues fixed in binary release, so
    marking fixed.

    --
    You received this message because this project is configured to send all
    issue notifications to this address.
    You may adjust your notification preferences at:
    https://code.google.com/hosting/settings

    --
    You received this message because you are subscribed to the Google Groups "Selenium Developer Activity" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to selenium-developer-activity+unsubscribe@googlegroups.com.
    To post to this group, send email to selenium-developer-activity@googlegroups.com.
    Visit this group at http://groups.google.com/group/selenium-developer-activity.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupselenium-developer-activity @
categoriesselenium
postedJun 14, '13 at 7:25p
activeAug 6, '13 at 2:57p
posts4
users1
websiteseleniumhq.org

1 user in discussion

Selenium: 4 posts

People

Translate

site design / logo © 2021 Grokbase