Blank Page Displayed

1,400 views
Skip to first unread message

Sandip Mukherjee

unread,
Sep 30, 2015, 9:30:54 AM9/30/15
to Selenium Users

HI,

I am having an issue with opening our site in chrome.We are using latest Chrome Brwoser,Chromedriver and standalone server.But when I am trying to open the said URL in remote server using Chrome it is returning blank page.But correct page is displayed If I am trying to open a site like "google.com".

Please advice if there is anything I can do to fix this,

Sandip Mukherjee

unread,
Sep 30, 2015, 10:00:52 AM9/30/15
to Selenium Users


On Wednesday, September 30, 2015 at 9:30:54 AM UTC-4, Sandip Mukherjee wrote:

HI,

I am having an issue with opening our site in chrome.We are using latest Chrome Brwoser,Chromedriver and standalone server.But when I am trying to open the said URL in remote server using Chrome it is returning blank page.But correct page is displayed If I am trying to open a site like "google.com".


This is the error message I am getting when I am trying to run the test.

An exception of type 'OpenQA.Selenium.NoSuchElementException' occurred in WebDriver.dll but was not handled in user code

Additional information: no such element

  (Session info: chrome=45.0.2454.101)

  (Driver info: chromedriver=2.16.333243 (0bfa1d3575fc1044244f21ddb82bf870944ef961),platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 34 milliseconds

For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html

Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'

System info: host: 'MIHQSELNAPADM01', ip: '192.168.12.64', os.name: 'Windows Server 2008 R2', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_55'

*** Element info: {Using=xpath, value=//*[@id='FirstName']}

Session ID: dee63ee72d4ac4b25299f06ce62f391a

Driver info: org.openqa.selenium.chrome.ChromeDriver

Capabilities [{platform=XP, acceptSslCerts=true, javascriptEnabled=true, browserName=chrome, chrome={userDataDir=C:\Users\SELENI~1\AppData\Local\Temp\scoped_dir6940_8890}, rotatable=false, locationContextEnabled=true, mobileEmulationEnabled=false, version=45.0.2454.101, takesHeapSnapshot=true, cssSelectorsEnabled=true, databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, webStorageEnabled=true, nativeEvents=true, hasTouchScreen=false, applicationCacheEnabled=false, takesScreenshot=true}] 

MWQA

unread,
Sep 30, 2015, 10:17:12 AM9/30/15
to Selenium Users
I think the platform should be "Windows XP" [1]



On Wednesday, 30 September 2015 15:00:52 UTC+1, Sandip Mukherjee wrote:


On Wednesday, September 30, 2015 at 9:30:54 AM UTC-4, Sandip Mukherjee wrote:

HI,

I am having an issue with opening our site in chrome.We are using latest Chrome Brwoser,Chromedriver and standalone server.But when I am trying to open the said URL in remote server using Chrome it is returning blank page.But correct page is displayed If I am trying to open a site like "google.com".




Vladyslav Lopatynskyi

unread,
Sep 30, 2015, 10:27:23 AM9/30/15
to Selenium Users
Can you provide your code?

Sandip Mukherjee

unread,
Sep 30, 2015, 12:01:14 PM9/30/15
to Selenium Users
 DesiredCapabilities capabilities = new DesiredCapabilities();

               //     System.("webdriver.chrome.logfile", "D:\\chromedriver.log");
                    capabilities = DesiredCapabilities.Chrome();
                                       capabilities.SetCapability(CapabilityType.BrowserName, "chrome");
                    capabilities.SetCapability(CapabilityType.Platform, "Windows");
                    //capabilities.SetCapability(CapabilityType.)
                   
                
                   caps = capabilities;

                    if (runLocal)
                        return new ChromeDriver();

                    break;

                default: break;
            }

            if (!runLocal)
                return new RemoteWebDriver(new Uri(server), caps);

            SeleniumStatus.LogMessage("Could not initialize driver. Check that the driver and browser strings are set to a valid combination, which has been implemented in SeleniumFactory.", SeleniumLogEventLevel.FATAL);
            return null;
        }

  private void SetEnvironment()
        {
            this.baseURL = SeleniumTestDriver.GetEnvironmentName();
            webDriver.Navigate().GoToUrl(this.baseURL);

Vladyslav Lopatynskyi

unread,
Oct 1, 2015, 2:49:10 AM10/1/15
to Selenium Users
This did not make it more clear unfortunately. But I could guess that this.baseURL  does not include protocol type. (http://yourWebStite or https://  or else).

Jayasankar Panduru

unread,
Dec 28, 2018, 2:24:25 AM12/28/18
to Selenium Users
Hi All,

Not sure everything was going good until yesterday, suddenly I am getting blank page when i start the chromedriver for any simple URL (http://www.google.com), if anyone has same experience recently on latest version,
please let me know the solution.

environment:
ChromeDriver : 2.44.609538 (32bit)
Chrome : 71 (32bit)
JDK 1.8 update 151 


please find the chromedriver log:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


[1545924286.252][INFO]: [2ab53a02db90a51562bb9a7f078d12fe] COMMAND InitSession {
   "desiredCapabilities": {
      "acceptInsecureCerts": true,
      "acceptSslCerts": true,
      "browserName": "chrome",
      "chromeOptions": {
         "args": [  ],
         "extensions": [  ],
         "useAutomationExtension": false
      },
      "ensureCleanSession": true,
      "ignore-certificate-errors": true,
      "javascriptEnabled": true,
      "platform": "ANY",
      "version": ""
   }
}
[1545924286.254][INFO]: Populating Preferences file: {
   "alternate_error_pages": {
      "enabled": false
   },
   "autofill": {
      "enabled": false
   },
   "browser": {
      "check_default_browser": false
   },
   "distribution": {
      "import_bookmarks": false,
      "import_history": false,
      "import_search_engine": false,
      "make_chrome_default_for_user": false,
      "skip_first_run_ui": true
   },
   "dns_prefetching": {
      "enabled": false
   },
   "profile": {
      "content_settings": {
         "pattern_pairs": {
            "https://*,*": {
               "media-stream": {
                  "audio": "Default",
                  "video": "Default"
               }
            }
         }
      },
      "default_content_setting_values": {
         "geolocation": 1
      },
      "default_content_settings": {
         "geolocation": 1,
         "mouselock": 1,
         "notifications": 1,
         "popups": 1,
         "ppapi-broker": 1
      },
      "password_manager_enabled": false
   },
   "safebrowsing": {
      "enabled": false
   },
   "search": {
      "suggest_enabled": false
   },
   "translate": {
      "enabled": false
   }
}
[1545924286.256][INFO]: Populating Local State file: {
   "background_mode": {
      "enabled": false
   },
   "ssl": {
      "rev_checking": {
         "enabled": false
      }
   }
}
[1545924286.259][INFO]: Launching chrome: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-background-networking --disable-client-side-phishing-detection --disable-default-apps --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --disable-web-resources --enable-automation --enable-logging --force-fieldtrials=SiteIsolationExtensions/Control --ignore-certificate-errors --log-level=0 --metrics-recording-only --no-first-run --password-store=basic --remote-debugging-port=0 --test-type=webdriver --use-mock-keychain --user-data-dir="C:\Users\p2855495\AppData\Local\Temp\scoped_dir6280_27959" data:,
[1545924287.065][DEBUG]: DevTools HTTP Request: http://localhost:50486/json/version
[1545924287.409][DEBUG]: DevTools HTTP Response: {

   "Browser": "Chrome/71.0.3578.98",

   "Protocol-Version": "1.3",

   "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36",

   "V8-Version": "7.1.302.31",

   "WebKit-Version": "537.36 (@15234034d19b85dcd9a03b164ae89d04145d8368)",

   "webSocketDebuggerUrl": "ws://localhost:50486/devtools/browser/edb9487e-c80d-43f2-9fc9-bb6810aeeece"

}


[1545924287.409][DEBUG]: DevTools HTTP Request: http://localhost:50486/json
[1545924287.410][DEBUG]: DevTools HTTP Response: [ {

   "description": "",

   "devtoolsFrontendUrl": "/devtools/inspector.html?ws=localhost:50486/devtools/page/1D95AE5BD551627AB41BA17DAA91F8A8",

   "id": "1D95AE5BD551627AB41BA17DAA91F8A8",

   "title": "",

   "type": "page",

   "url": "data:,",

   "webSocketDebuggerUrl": "ws://localhost:50486/devtools/page/1D95AE5BD551627AB41BA17DAA91F8A8"

} ]


[1545924287.599][INFO]: resolved localhost to ["::1","127.0.0.1"]
[1545924288.626][DEBUG]: DevTools WebSocket Command: Security.setIgnoreCertificateErrors (id=1) browser {
   "ignore": true
}
[1545924288.627][DEBUG]: DevTools WebSocket Response: Security.setIgnoreCertificateErrors (id=1) browser {

}
[1545924288.627][DEBUG]: DevTools HTTP Request: http://localhost:50486/json
[1545924288.628][DEBUG]: DevTools HTTP Response: [ {

   "description": "",

   "devtoolsFrontendUrl": "/devtools/inspector.html?ws=localhost:50486/devtools/page/1D95AE5BD551627AB41BA17DAA91F8A8",

   "id": "1D95AE5BD551627AB41BA17DAA91F8A8",

   "title": "data:,",

   "type": "page",

   "url": "data:,",

   "webSocketDebuggerUrl": "ws://localhost:50486/devtools/page/1D95AE5BD551627AB41BA17DAA91F8A8"

} ]


[1545924288.629][INFO]: resolved localhost to ["::1","127.0.0.1"]
[1545924289.628][DEBUG]: DevTools WebSocket Command: Log.enable (id=1) 1D95AE5BD551627AB41BA17DAA91F8A8 {

}
[1545924289.628][DEBUG]: DevTools WebSocket Command: DOM.getDocument (id=2) 1D95AE5BD551627AB41BA17DAA91F8A8 {

}
[1545924289.628][DEBUG]: DevTools WebSocket Command: Target.setAutoAttach (id=3) 1D95AE5BD551627AB41BA17DAA91F8A8 {
   "autoAttach": true,
   "waitForDebuggerOnStart": false
}
[1545924289.629][DEBUG]: DevTools WebSocket Command: Page.enable (id=4) 1D95AE5BD551627AB41BA17DAA91F8A8 {

}
[1545924289.629][DEBUG]: DevTools WebSocket Command: Page.enable (id=5) 1D95AE5BD551627AB41BA17DAA91F8A8 {

}

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Thanks,
Jay

Maroof Ahmed Khan

unread,
Dec 29, 2018, 9:12:55 AM12/29/18
to seleniu...@googlegroups.com
Your chrome browser version is not compatible with chrome driver.

--
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-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/54ff8d1a-a4b5-4909-98ea-44a99751a19a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raj Chahal

unread,
Jan 7, 2019, 9:34:05 AM1/7/19
to Selenium Users
Yes, seems like the issue, it was resolved for me by updating the ChromeDriver version and also Chrome Browser must be the latest.

Thanks,
Raj
Reply all
Reply to author
Forward
0 new messages