Replies: 4 comments 5 replies
-
In future please use discussions to ask questions. https://github.com/cefsharp/CefSharp/discussions If you are using WinForms then see There is a working example as part of the project source see https://github.com/cefsharp/CefSharp/blob/cefsharp/101/CefSharp.WinForms.Example/BrowserTabUserControl.cs#L90 |
Beta Was this translation helpful? Give feedback.
-
Hey, im sorry, was the wrong subforum :( @amaitland thanks for the links, I think i get worked, just modified my code a bit :)
This will load the popup in a new tab! Nice :) Calling this after the new tab from the popup:
what do i wrong here at this point after the new popup is created as a new tab and what im missing? (yes, i have the correct Id for the testbutton) |
Beta Was this translation helpful? Give feedback.
-
Yes thats true, but i dont think thats the solution for that ..
Do i need after the popup is created in a new tab to set focus, handler, Register or so? tryed this in the OnAfterCreated class:
any working example? :/ |
Beta Was this translation helpful? Give feedback.
-
Okay Sir, My code opens a website, after that i login to my usercenter. Code:
This works for the Mainpage, but not on the new created Tab.
And yes, the querySelector is correct for the website in the new tab. |
Beta Was this translation helpful? Give feedback.
-
Hello,
im bit struggeling about correct handling new windows from a popup with a button click.
I know we can use LifeSpanHandler, thats what i have done at the moment.
this opens a new tab with the url that i set.
other test with OnBeforePopup...
this code is only working, if i provide a URL.
but my code set the attribute, and then click it.
yes this working well, but the popup after the click opens in new window, but i need to get a new tab.
Anyone know how is that possible to make the ExecuteScriptAsync............click(); opens in a new tab?
Beta Was this translation helpful? Give feedback.
All reactions