随笔 - 21  文章 - 0 评论 - 5 阅读 - 18477
< 2025年4月 >
30 31 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 1 2 3
4 5 6 7 8 9 10

摘要: Create Grids with Dynamic Columns and Data Types Create Grids with Dynamic Columns and Data TypesEnvironmentProduct Progress? Kendo UI? Grid for jQuer 阅读全文
posted @ 2024-01-03 22:17 daconglee 阅读(87) 评论(0) 推荐(0) 编辑

PlayWright.Net获取无ID的frame框架,在iframe中按照id定位某个文本框

多页签采用的frame方式,并且嵌套的iframe没有name和id。支持无限嵌套的ifame

 

 

1
2
3
4
5
6
7
8
9
10
11
private async Task DumpFrameTree(IFrame frame, string indent)
    {       
        foreach (var child in frame.ChildFrames)
        {
            await DumpFrameTree(child, indent + " ");
            if (child.Url.Contains("/page/card/cardpreview"))
            {<br>//定位框架iframe中的元素,
                var l = child.Locator("#DJBH");
                if (l != null)
                {
                    //BindData(await l.InputValueAsync()        ); }<br>     break; } <br>  } <br>}<br> private async void btn_Click(object sender, EventArgs e) { <br>await DumpFrameTree(page.MainFrame, string.Empty);<br> }

  

posted @ 2024-12-13 15:00 daconglee 阅读(28) 评论(0) 推荐(0) 编辑
摘要: System.Net.Sockets.SocketException (11004): 请求的名称有效,但是找不到请求的类型的数据 清空chorme浏览器缓存,等会重试。关闭浏览器 C# httpClient System.Net.Http.HttpRequestException: 请求的名称有效 阅读全文
posted @ 2024-11-19 17:30 daconglee 阅读(135) 评论(0) 推荐(0) 编辑
摘要: SELECT $ FROM TaskDisplay; SELECT count(*) FROM TaskDisplay; LiteDB.Studio insert插入语句 INSERT INTO TaskDisplay VALUES {taskId: 'John',Title:'第三方'}; Upd 阅读全文
posted @ 2024-11-06 09:55 daconglee 阅读(101) 评论(0) 推荐(0) 编辑
摘要: //博客园主页 var l = page.Locator(.post-item-body div > a); //var h = await l.First.InnerHTMLAsync(); var str = "\"<span style='color:red'>我是大聪派来的救兵</span> 阅读全文
posted @ 2024-10-31 18:03 daconglee 阅读(13) 评论(0) 推荐(0) 编辑
摘要: playwright = await Playwright.CreateAsync(); var userDataDir = $"{Directory.GetCurrentDirectory()}\\UserData"; var context = await playwright.Chromium 阅读全文
posted @ 2024-10-29 15:06 daconglee 阅读(38) 评论(0) 推荐(0) 编辑
摘要: TFS2015版以上强制删除被占用文件及强制删除工作区,包括强制撤销其他人的签出。TFS 文件被占用,强制取消占用。 由于各种原因(签出后工作区更改、人员离职调动等)需要删除其他成员占用的文件 Team Foundation 2015 强制解除签入签出锁定 TFS(Team Foundation s 阅读全文
posted @ 2024-09-10 21:58 daconglee 阅读(27) 评论(0) 推荐(0) 编辑
摘要: control over http headers using clumsy: MyWebServiceClient client = new MyWebServiceClient(); using ( new OperationContextScope( client.InnerChannel ) 阅读全文
posted @ 2024-08-22 13:13 daconglee 阅读(12) 评论(0) 推荐(0) 编辑
摘要: Playwright.Net下载文件,使用WaitForDownloadAsync Playwright = await Microsoft.Playwright.Playwright.CreateAsync(); var userDataDir = $"{Directory.GetCurrentD 阅读全文
posted @ 2024-08-12 11:43 daconglee 阅读(54) 评论(0) 推荐(0) 编辑
摘要: EEPlus toText excel中文乱码使用Encoding来解决 看一下你就搞定了 ToText Jump to bottom Mats Alm edited this page Nov 7, 2023 · 13 revisions This method exports a range i 阅读全文
posted @ 2024-04-26 10:51 daconglee 阅读(59) 评论(0) 推荐(0) 编辑
摘要: playwright f 对日期选择控件的设置,直接使用js脚本 public partial class MainForm : Form { IPlaywright playwright; IPage page; public MainForm() { InitializeComponent(); 阅读全文
posted @ 2024-04-03 22:57 daconglee 阅读(177) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示