puppeteer-sharp
puppeteer-sharp copied to clipboard
ContentFrameAsync() exception occurred in iframe elementHandle
Looking for some help? Get priority support by sponsoring the project/
Before you file a bug, have you:
- Tried upgrading to newest version of PuppeteerSharp, to see if your issue has already been resolved and released?
- Checked existing open and closed issues, to see if the issue has already been reported?
- Tried reproducing your problem in a new isolated project?
- Considered if this is a general question and not a bug?. For general questions please use StackOverflow.
Description
[Description of the issue] iframeElementHandle.ContentFrameAsync() throw exception
Frame 8B6EB85116EFEB0ABBEFC65625234E35 not found
Complete minimal example reproducing the issue
// Arrange
var options = new LaunchOptions { /* */ };
var chromiumRevision = BrowserFetcher.DefaultRevision;
var browser = await Puppeteer.LaunchAsync(options, chromiumRevision);
var page = browser.NewPageAsync();
await page.GoToAsync("https://forum.netmarble.com/enn_ko/view/33/132235",
new NavigationOptions() {WaitUntil = new[] {WaitUntilNavigation.Load, WaitUntilNavigation.Networkidle0}});
// Act
...
var elementHandle = await page.QuerySelectorAsync("#contentsDetail iframe");
var frame = await elementHandle.ContentFrameAsync();
// Assert
--> throw exception Frame 8B6EB85116EFEB0ABBEFC65625234E35 not found
...
Expected behavior:
[What you expect to happen] not throw exception
Actual behavior:
[What actually happens] but throw exception
Versions
- Which version of PuppeteerSharp are you using? 7.0.0
- Which .NET runtime and version are you targeting? E.g. .NET 5
Additional Information
Any additional information, configuration or data that might be necessary to reproduce the issue.
Confirming, ContentFrameAsync()
is not working on any website in current version (7.0). 6.x works fine,
Can you try v7.1 @Yaagod ?