- Shirish
- Posts : 1
Join date : 2014-07-30
Selenium not able to identify confirm dialog box while testing
Wed Jul 30, 2014 4:17 pm
During sellenium testing I have a issue where i have a page in which i have a confirmation dialog box. Everything works fine until the time i have confirmation dialog box popped up. I have a delete button on which there is a confirmation popup for which i have to click on yes button.
when selenium tries to identify the confirmation dialog box i get an error message stating:
org.openqa.selenium.NoSuchElementException: Unable to find element with xpath == //table[@id='groupActions
']/tbody/tr/td/button[@title='GDelYesButton']
Also i have tried using
for which i get an error there is no alert active.
when selenium tries to identify the confirmation dialog box i get an error message stating:
org.openqa.selenium.NoSuchElementException: Unable to find element with xpath == //table[@id='groupActions
']/tbody/tr/td/button[@title='GDelYesButton']
Also i have tried using
- Code:
driver.switchTo().alert();
for which i get an error there is no alert active.
I have a issue where i have a page in which i have a confirmation dialog box. Everything works fine until the time i have confirmation dialog box popped up. I have a delete button on which there is a confirmation popup for which i have to click on yes button. when selenium tries to identify the confirmation dialog box i get an error message stating:
UI Code for popup:
|
- mail2prassadAmateur
- Posts : 41
Join date : 2013-06-05
Re: Selenium not able to identify confirm dialog box while testing
Mon Aug 04, 2014 11:14 pm
It looks like the alert is not windows standard alert box.
This may be a DIV.
This may be a DIV.
- anemudayActive particpant
- Posts : 11
Join date : 2012-10-11
Re: Selenium not able to identify confirm dialog box while testing
Wed Aug 13, 2014 11:57 am
Hi,
I am hoping you are trying to accept the conformation dialog by clicking on Yes button.
If that is your case, use below syntax
I hope the above helps.
Thanks,
Uday
I am hoping you are trying to accept the conformation dialog by clicking on Yes button.
If that is your case, use below syntax
- Code:
Alert alert=driver.switchTo().alert();
// to get the text of alert message use alert.getText();
alert.accept(); //which clicks Yes or accepts this dialog
alert.dismiss(); //if you dont want to accept the terms.
I hope the above helps.
Thanks,
Uday
- deepender
- Posts : 3
Join date : 2014-09-03
Re: Selenium not able to identify confirm dialog box while testing
Wed Sep 03, 2014 8:06 pm
Try to search the element using class as a id
- Paps_engineerActive particpant
- Posts : 10
Join date : 2014-07-24
Re: Selenium not able to identify confirm dialog box while testing
Fri Oct 10, 2014 5:42 pm
I think you may use the Autoit .exe for this situation
to handle this alert try to use Autoit.exe script.
Thanks,
Papaiadasan.S,
Automation COE,
Indium Software India Limited.
(indiumsoft.com/core-qa-offerings/test-automation)
http://www.indiumsoft.com/core-qa-offerings/test-automation" title="Test Automation">Test Automation
to handle this alert try to use Autoit.exe script.
Thanks,
Papaiadasan.S,
Automation COE,
Indium Software India Limited.
(indiumsoft.com/core-qa-offerings/test-automation)
http://www.indiumsoft.com/core-qa-offerings/test-automation" title="Test Automation">Test Automation
Permissions in this forum:
You cannot reply to topics in this forum