.Net: The Class target was added to PageObject attributes#855
Closed
TikhomirovSergey wants to merge 1 commit intoSeleniumHQ:masterfrom
Closed
.Net: The Class target was added to PageObject attributes#855TikhomirovSergey wants to merge 1 commit intoSeleniumHQ:masterfrom
TikhomirovSergey wants to merge 1 commit intoSeleniumHQ:masterfrom
Conversation
This change change provides to end user some additional options.
For example
User needs to develop page object like that:
```csharp
//[FindsBySequence]
[FindsBy(How = How.Id, Using = "SomeId", Priority = 1)]
[FindsBy(How = How.ClassName, Using = "SomeClass", Priority = 2)]
//and so on
//the construction above describes how to find the root element
class PageObject
{
[FindsBy(How = How.TagName, Using = "SomeTag")]
IWebElement e; //this is the nested element
}
```
At this case they only need to develop their own customized
[IPageObjectMemberDecorator](https://github.com/SeleniumHQ/selenium/blob/master/dotnet/src/support/PageObjects/IPageObjectMemberDecorator.cs)
implementation that can handle classes/members like above
Member
|
The |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change change provides to end user some additional options.
For example
User needs to develop page object like that:
At this case they only need to develop their own customized
IPageObjectMemberDecorator
implementation that can handle classes/members like above