Hi,
i trying to get the safariConsole-Log accordingly to this article: https://appiumpro.com/editions/37
But it stays empty. Even in my own application i see no entry.
I’m using Appium 15.0 with --relaxed-security. What am i missing?
I have tried 14.0 before.
I’m having C# with Nunit, Appium.WebDriver is 3.0.0.2
[Test]
public void testLogging()
{
driver.Url = ("https://appiumpro.com/test");
driver.ExecuteScript("window.onerror=console.error.bind(console)");
driver.ExecuteScript("console.log('foo.');");
driver.ExecuteScript("console.warn('bar?');");
driver.FindElementById("jsErrLink").Click();
foreach (var line in driver.Manage().Logs.GetLog("safariConsole"))
{
Console.WriteLine(line.ToString());
};
}