hi im trying to load a link from selenium but get a message saying :
----------------------------------------------------------------------------------------
Ad Blocker Detected!
It appears that you have an advert blocking browser extension enabled.
Our Publishers use this revenue in order to monetize their websites and provide you with their content. To permanently remove this message please consider to white list our website.
Adblock Plus users, click on Adblock plus icon, and deselect 'Enabled for this website'
For more information please see our Knowledge Base article:
-----------------------------------------------------------------------------------------
but i can visit this link in normal firefox i dont have any extensions enabled in profile so whats the crack?
my code is:
static org.openqa.selenium.Point posh=new org.openqa.selenium.Point(0,0);
static org.openqa.selenium.Dimension sizeh=new org.openqa.selenium.Dimension(900,500);
static org.openqa.selenium.Point posaf=new org.openqa.selenium.Point(300,600);
static org.openqa.selenium.Dimension sizeaf=new org.openqa.selenium.Dimension(800,500);
public static void main(String[] args) throws InterruptedException {
String link="site";
FirefoxProfile profilepaste = new FirefoxProfile();
WebDriver np=new FirefoxDriver(profilepaste);
np.get(link);////location of post
Thread.sleep(7000);
i have googled but cant find what my problem is as i am not enabling any addons in java