Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8316349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:20:36+00:00 2026-06-08T21:20:36+00:00

Is the Finder attribute argument valid i.e. can it actually be used?, I get

  • 0

Is the Finder attribute argument valid i.e. can it actually be used?, I get this compiler error “‘Finder’ is not a valid named attribute argument because it is not a valid attribute parameter type” whenever I try to use it, e.g.

[FindsBy(Finder = By.Id("test").FindElement(By.TagName("iframe")))]    
public IWebElement Test{ get; set; }

Has anyone got a working example of using the Finder attribute argument or is this a bug?

see the code:
http://code.google.com/p/selenium/source/browse/trunk/dotnet/src/WebDriver.Support/PageObjects/FindsByAttribute.cs?r=17167#

Also from http://msdn.microsoft.com/en-us/library/aa664615%28VS.71%29.aspx, The types of positional and named parameters for an attribute class are limited to the attribute parameter types, which are:

One of the following types: bool, byte, char, double, float, int, long, short, string.
The type object.
The type System.Type.
An enum type, provided it has public accessibility and the types in which it is nested (if any) also have public accessibility (Section 17.2).
Single-dimensional arrays of the above types.

To my knowledge By isn’t any of above types and so I get the compiler error or am I wrong?

What I am trying to do is get a ckeditor textbox as a WebElement property of a page object like:

[FindsBy(Finder = By.Id("cke_Details").FindElement(By.TagName("iframe")))]
public IWebElement Details { get; set; }

Is there any other way I can achieve this? Thanks for any help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T21:20:37+00:00Added an answer on June 8, 2026 at 9:20 pm

    This is a bug in the .NET FindsByAttribute implementation. You should not attempt to use the Finder property; it will not work at all. Use the following instead:

    // WARNING: Completely untested code here. Not guaranteed to 
    // work correctly, or even to compile.
    [FindsBy(How = How.Id, Using = "test")]
    public IWebElement Test { get; set; }
    

    If you need something more complex like the hierarchical find path you mentioned in your question, you could use a find by XPath or CSS selector, like so:

    // WARNING: Completely untested code here. Not guaranteed to 
    // work correctly, or even to compile.
    [FindsBy(How = How.XPath, Using = "//*[@id='test']/iframe")]
    public IWebElement Test { get; set; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there is no finder built into django for this (at least not
Any way to make a OS X Finder like but valid XHTML/CSS search textfield
Is there a way to open the Finder's Get Info window within my app
Here's my C method to get the pid of the Finder process. GetProcessInformation() is
The Finder uses some kind of rules to determine if an Item can be
BrowserCMS can delete objects, which basically sets the :deleted attribute to true. Paperclip runs
I have a XSD file like below: <element name=finder-def minOccurs=0 maxOccurs=unbounded> <complexType> <attribute name=name
the finder list command in Spring-roo, I added the filter parameter to cut down
I want to use find_or_create_by, but this statement does NOT work. It does not
This is my SLSB: @Stateless(name = FinderEJB) @Path(/) public class Finder implements FinderLocal {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.