Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Selenium with McAfee Site Advisor in Background #4839

Closed
lukeis opened this issue Mar 4, 2016 · 9 comments
Closed

Selenium with McAfee Site Advisor in Background #4839

lukeis opened this issue Mar 4, 2016 · 9 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 4839

Hello, we have been having an issue recently since the installation of
McAfee SiteAdvisor was installed.  It seems that the only affected
browser is Internet Explorer.  The script will launch IE, but it is
unable to interact with the browser.  This does not happen with Chrome
or Firefox.  Has anyone ran into this and what was your solution?

What steps will reproduce the problem?
1. Create new InternetExplorerDriver()
2. Call driver.get(baseUrl)

What is the expected output? What do you see instead?
The webpage should be displayed.  I am receiving the following error message.

"C:\Program Files\JAVA\jdk1.6.0_33\bin\java" -ea -Didea.launcher.port=7534 "-Didea.launcher.bin.path=C:\Program
Files\JetBrains\IntelliJ IDEA Community Edition 11.1.2\bin" -Dfile.encoding=UTF-8 -classpath
"C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 11.1.2\lib\idea_rt.jar;C:\Program
Files\JetBrains\IntelliJ IDEA Community Edition 11.1.2\plugins\junit\lib\junit-rt.jar;C:\Program
Files\JAVA\jdk1.6.0_33\jre\lib\charsets.jar;C:\Program Files\JAVA\jdk1.6.0_33\jre\lib\deploy.jar;C:\Program
Files\JAVA\jdk1.6.0_33\jre\lib\javaws.jar;C:\Program Files\JAVA\jdk1.6.0_33\jre\lib\jce.jar;C:\Program
Files\JAVA\jdk1.6.0_33\jre\lib\jsse.jar;C:\Program Files\JAVA\jdk1.6.0_33\jre\lib\management-agent.jar;C:\Program
Files\JAVA\jdk1.6.0_33\jre\lib\plugin.jar;C:\Program Files\JAVA\jdk1.6.0_33\jre\lib\resources.jar;C:\Program
Files\JAVA\jdk1.6.0_33\jre\lib\rt.jar;C:\Program Files\JAVA\jdk1.6.0_33\jre\lib\ext\dnsns.jar;C:\Program
Files\JAVA\jdk1.6.0_33\jre\lib\ext\localedata.jar;C:\Program Files\JAVA\jdk1.6.0_33\jre\lib\ext\sunjce_provider.jar;C:\Program
Files\JAVA\jdk1.6.0_33\jre\lib\ext\sunmscapi.jar;C:\Program Files\JAVA\jdk1.6.0_33\jre\lib\ext\sunpkcs11.jar;C:\app\APP\out\production\APP;C:\app\APP\lib\selenium-java-2.25.0.jar;C:\app\APP\lib\apache-mime4j-0.6.jar;C:\app\APP\lib\bsh-1.3.0.jar;C:\app\APP\lib\cglib-nodep-2.1_3.jar;C:\app\APP\lib\commons-codec-1.6.jar;C:\app\APP\lib\commons-collections-3.2.1.jar;C:\app\APP\lib\commons-exec-1.1.jar;C:\app\APP\lib\commons-io-2.0.1.jar;C:\app\APP\lib\commons-jxpath-1.3.jar;C:\app\APP\lib\commons-lang-2.6.jar;C:\app\APP\lib\commons-logging-1.1.1.jar;C:\app\APP\lib\cssparser-0.9.5.jar;C:\app\APP\lib\guava-12.0.jar;C:\app\APP\lib\hamcrest-core-1.1.jar;C:\app\APP\lib\hamcrest-library-1.1.jar;C:\app\APP\lib\htmlunit-2.9.jar;C:\app\APP\lib\htmlunit-core-js-2.9.jar;C:\app\APP\lib\httpclient-4.1.3.jar;C:\app\APP\lib\httpcore-4.1.3.jar;C:\app\APP\lib\httpmime-4.1.3.jar;C:\app\APP\lib\ini4j-0.5.2.jar;C:\app\APP\lib\jcommander-1.13.jar;C:\app\APP\lib\jna-3.4.0.jar;C:\app\APP\lib\jna-platform-3.4.0.jar;C:\app\APP\lib\json-20080701.jar;C:\app\APP\lib\junit-4.9.jar;C:\app\APP\lib\junit-dep-4.10.jar;C:\app\APP\lib\jxl.jar;C:\app\APP\lib\nekohtml-1.9.15.jar;C:\app\APP\lib\netty-3.2.7.Final.jar;C:\app\APP\lib\operadriver-0.14.jar;C:\app\APP\lib\poi-3.8-20120326.jar;C:\app\APP\lib\protobuf-java-2.4.1.jar;C:\app\APP\lib\sac-1.3.jar;C:\app\APP\lib\serializer-2.7.1.jar;C:\app\APP\lib\testng-6.0.1-nobsh-noguice.jar;C:\app\APP\lib\webbit-0.4.8-SNAPSHOT.jar;C:\app\APP\lib\xalan-2.7.1.jar;C:\app\APP\lib\xercesImpl-2.9.1.jar;C:\app\APP\lib\xml-apis-1.3.04.jar"
com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter
-ideVersion5 com.adp.qa.tests.WelcomePage
Started InternetExplorerDriver server (32-bit)
2.25.2.0
Listening on port 14772
Nov 28, 2012 1:57:38 PM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: I/O exception (org.apache.http.NoHttpResponseException) caught when processing
request: The target server failed to respond
Nov 28, 2012 1:57:38 PM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: Retrying request

Process finished with exit code 0

Selenium version: 2.25.0
OS: Windows 7
Browser: Internet Explorer
Browser version: 9
McAfee SiteAdvisor Version: 3.5.0.724



Reported by davefzr@yahoo.com on 2012-11-28 22:02:23

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Something blocks connections from selenium client to IEDriverServer. Check your network
settings (firewalls, proxy).

If you think that McAfee SiteAdvisor is the reason to fail try to switch it off and
check if this helps. Do you really need this software to run your tests?

Reported by barancev on 2012-12-20 07:00:12

  • Status changed: NeedsClarification

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by barancev on 2012-12-20 07:00:25

  • Labels added: Browser-IE

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

McAfee is blocking for us too. We cannot disable McAfee due to security policies.

Reported by sree815 on 2013-01-08 19:02:49

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

What *exactly* McAfee blocks? Prevents network interaction between test code and selenium
server and the browser? Prevents starting some processes, which ones? Anything else?

Reported by barancev on 2013-01-17 20:53:00

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Hi, 

I am trying to execute simple script where it opens a website. 

        try 
                { 
                System.out.println("1"); 
                System.setProperty("webdriver.ie.driver", "C:\\Temporary\\IEDriverServer\\IEDriverServer.exe");

                System.out.println("2"); 
                WebDriver driver = new InternetExplorerDriver(); 
                System.out.println("3"); 
                Thread.sleep(8000); 

                driver.navigate().to("http://www.google.com"); 
                //driver.close(); 
                System.out.println("4"); 


} catch(Exception e){System.out.println(e.getMessage());} 


I GET BELOW ERRORS WHEN I EXECUTE THE SCRIPT. IE OPENS BUT DOESNOT NAVIGATE TO URL.
APPRECIATE ANY HELP. 

1 
2 
Started InternetExplorerDriver server (32-bit) 
2.24.2.0 
Listening on port 58311 

Modal dialog present (WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 1.42 seconds 
Build info: version: '2.25.0', revision: '17482', time: '2012-07-18 21:09:54' 
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version:
'1.7.0_06' 
Driver info: driver.version: InternetExplorerDriver 

Reported by sree815 on 2013-01-18 04:01:07

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I also faced this problem during I use the Selenium 2.30.0.
I just execute below simple script , IE can be opened, but can't navigate.
WebDriver webdriver=new InternetExplorerDriver();
webdriver.get("http://www.baidu.com");

McAfee is mandatory software in our office's desktop, so I can't disable it.
Is there any solution for this situation?




Exception in thread "main" org.openqa.selenium.UnhandledAlertException: Modal dialog
present
Build info: version: '2.30.0', revision: 'dc1ef9c', time: '2013-02-19 00:15:57'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version:
'1.7.0_09'
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:187)
    at org.openqa.selenium.remote.ErrorHandler.createUnhandledAlertException(ErrorHandler.java:168)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:141)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:216)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:201)
    at org.openqa.selenium.ie.InternetExplorerDriver.setup(InternetExplorerDriver.java:105)
    at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:51)
    at basicoperation.testTraining.main(testTraining.java:28)

Reported by hwwvivian on 2013-02-21 09:23:15

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Issue 5158 has been merged into this issue.

Reported by james.h.evans.jr on 2013-02-21 16:23:50

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

This issue was closed by revision 3b9255bc9af5.

Reported by james.h.evans.jr on 2013-02-21 16:58:29

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 18:16:25

  • Labels added: Restrict-AddIssueComment-Commit

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant