Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: selenium profile

  1. #1
    Member
    Join Date
    Apr 2013
    Posts
    103
    Thanks
    8
    Thanked 3 Times in 3 Posts

    Default selenium profile

    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


  2. #2
    Member
    Join Date
    Apr 2013
    Posts
    103
    Thanks
    8
    Thanked 3 Times in 3 Posts

    Default Re: selenium profile

    it was a problem with proxy not webdriver sorry should have checked that

Similar Threads

  1. Replies: 5
    Last Post: January 14th, 2013, 09:50 AM
  2. Picture blurred to nitida in the profile...search code!
    By qaz in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 18th, 2012, 11:21 AM
  3. Need Java code to be used in Selenium Script
    By anujbatta in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 25th, 2011, 11:50 AM