I ran a selenium script on facebook site, but I keep getting a notification after the login. Please, how can i write a script to close/block it
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/82504357-4c83-4b83-803c-21ed5868ad7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Those are managed used chrome Options - Browser specificPlease Follow below steps :Step 1://Create a instance of ChromeOptions classChromeOptions options = new ChromeOptions();Step 2://Add chrome switch to disable notification - "--disable-notifications"options.addArguments("--disable-notifications");Step 3://Pass ChromeOptions instance to ChromeDriver Constructor
On Friday, June 1, 2018 at 5:06:12 PM UTC+5:30, tayoot...@gmail.com wrote:I ran a selenium script on facebook site, but I keep getting a notification after the login. Please, how can i write a script to close/block it
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f9e03410-d48d-42a8-9195-6ea854d50874%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/dcc777b0-5aed-48ac-97ff-c7e10a2c8c94%40googlegroups.com.
driver = new chromeDriver(options).
Please go through this URL for ur query ready made answer
http://learn-automation.com/disable-chrome-notifications-selenium-webdriver/
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/4155b74a-c96c-4fd1-940b-bdb3e453adaf%40googlegroups.com.