Iam a beginner in Selenium WebDriver. I wrote a code to just navigate to a URL and login to that. Also to show a message in console of the string URL is correct as the current URL. The code is executing succesfully and is working as expected. Its logging in. But at the same time getting some warning messaged in the console. can some one please let me know the reason for the warning message? Is it because any jar files are missing? I'm using the latest versions of JDK and Selenium WebDriver. Please see below the code snippet and the console Error.
Code as below :
package testSelenium1;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class admin {
public static void main(String args[]) {
System.setProperty("webdriver.gecko.driver","C:\\Users\\30211170\\Downloads\\geckodriver-v0.26.0-win64\\geckodriver.exe");
WebDriver driver = new FirefoxDriver();// Launches firefox browser with blank URL
driver.get("http://www.gcrit.com/build3/admin/login.php?");
driver.findElement(By.name("username")).sendKeys("admin");
driver.findElement(By.name("password")).sendKeys("admin@123");
driver.findElement(By.id("tdb1")).click();
String url = driver.getCurrentUrl();
if (url.equals("http://www.gcrit.com/build3/admin/index.php")) {
System.out.println("Login is success");
} else {
System.out.println("Log in failed");
}
}
}
Warning message as below :
1576773751789 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "-marionette" "-foreground" "-no-remote" "-profile" "C:\\Users\\30211170\\AppData\\Local\\Temp\\rust_mozprofile69gY6Q"
1576773753129 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons
1576773753129 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry
1576773753130 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/
1576773753130 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader*
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
1576773756768 Marionette INFO Listening on port 64629
1576773757219 Marionette WARN TLS certificate errors will be ignored for this session
Dec 19, 2019 10:12:37 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
Login is success
This WARNING message...
1576850500604 Marionette WARN TLS certificate errors will be ignored for this session
...implies that the Marionette will ignore TLS certificate errors for this session.
This WARNING is generated when Selenium initiates a new Browsing Context i.e. Firefox Browser session using geckodriver through marionette.
This WARNING
message isn't harmful for your @Tests and you can ignore it safely.