Alert pop up handling | Selenium Forum
M
Posted on 05/01/2017
Hi,

My project flow one alert pop up will come and I need to click on "No" but my control I am not able to pass in alert pop up

Getting error
......................................................................................

1483600777610 geckodriver INFO Listening on 127.0.0.1:26149
Jan 05, 2017 12:49:37 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end
1483600778170 mozprofile::profile INFO Using profile path C:\Users\shiva\AppData\Local\Temp\rust_mozprofile.S8szaS1TI58i
1483600778182 geckodriver::marionette INFO Starting browser C:\Program Files (x86)\Mozilla Firefox\firefox.exe
1483600778201 geckodriver::marionette INFO Connecting to Marionette on localhost:58486
1483600781580 Marionette INFO Listening on port 58486
Jan 05, 2017 12:49:47 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
JavaScript error: http://app.loan2pal.com/app/business, line 488: TypeError: document.getElementById(...) is null
JavaScript error: http://app.loan2pal.com/app/js/upload_file.js?1483600836, line 103: TypeError: uploaded_file_path is undefined
Exception in thread "main" org.openqa.selenium.NoAlertPresentException: No tab modal was open when attempting to get the dialog text
Build info: version: 'unknown', revision: '1969d75', time: '2016-10-18 09:43:45 -0700'
System info: host: 'DESKTOP-UBLIRSP', ip: '192.168.1.100', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_111'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{rotatable=false, raisesAccessibilityExceptions=false, marionette=true, firefoxOptions={args=[], prefs={}}, appBuildId=20161208153507, version=, platform=XP, proxy={}, command_id=1, specificationLevel=0, acceptSslCerts=false, processId=12244, browserVersion=50.1.0, platformVersion=10.0, XULappId={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browserName=firefox, takesScreenshot=true, takesElementScreenshot=true, platformName=windows_nt}]
Session ID: c41dff38-8fa0-40b7-b3cd-df743aed0392
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

.........................................................................................................................................................................


Regards

ruma

M
Replied on 05/01/2017

send a screen shot of alert.