csharpfritz / csharpfritz/WebFormsTest
Can't find Controls - WebForms w/ nested Master pages
- 主要言語
- JavaScript
- スター
- 26
- フォーク
- 14
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Has anyone had any success using WebFormsTest with nested Master Pages in WebForms?
I'm able to get WebApplicationProxy.Create to run, and WebApplicationProxy.GetPageLocation to run just fine, but controls are never able to be found.
```
WebApplicationProxy.Create(typeof(Platform.applications.applications), options);
var page= WebApplicationProxy.GetPageByLocation("/applications/test.aspx");
page.RunToEvent(WebFormEvent.Init);
var testControl= page.FindControl("btnTest"); // no controls are ever found recursively or otherwise.
```
Here is an example Master-page that inherits from a nested Master Page
```
<%@ Master Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="Platform.applications.Site1" %>
<%@ MasterType VirtualPath="~/Main.Master" %>
`
```
Thanks
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
再現コード内の WebApplicationProxy.Create と GetPageByLocation の呼び出しから始め、ネストされた Master Page の例について page.RunToEvent(WebFormEvent.Init) と FindControl("btnTest") を追跡します。WebForms がネストされた Master Page を使用する場合にコントロールを見つけられること(示されている Site1.master 構造を含む)が完了の条件です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- testing-qa
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100