Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

wait for confirmation

View previous topic View next topic Go down

wait for confirmation

Post by nico92 on Tue May 22, 2012 5:32 pm

Hello everyone

I need to automatise a test. The aim is to:
click on a button delete.
Then, a dialog confirmation yes/no appears. I need to click on the button yes.
I have tried WaitForConfirmation, but it doesn't work.
If I try to cklick on the button yes of the confirmation dialog, I do not get the error element not present, but it doesn't work either.

The tag of the dialog confirmation is a div with:

id="blueConfirmationDialog" class="dijitDialog" aria-labelledby="blueConfirmationDialog_title" role="dialog" title="" widgetid="blueConfirmationDialog" style="position: absolute; opacity: 1; left: 481px; top: 231px; z-index: 950;"

The tag of the button delete is a link with:
id="delete_relation_3" class="delete" urlaction="/instance/relation/delete/relation_id/3" urlconfirm="/instance/relation/get-delete-message/relation_id/3" onclick="" href="javascript:void(0);"

Could you help me?

nico92

Posts : 5
Join date : 2012-05-22

Back to top Go down

Re: wait for confirmation

Post by rohit13 on Tue May 22, 2012 5:54 pm

What is happening when you click on OK of confirmation dialog?
Dialog is getting close or not??

_________________
Radical QA
http://radical-qa.blogspot.in/
avatar
rohit13
Master
Master

Posts : 180
Join date : 2012-03-29
Age : 31
Location : INDIA

http://radical-qa.blogspot.in/

Back to top Go down

Re: wait for confirmation

Post by nico92 on Tue May 22, 2012 6:09 pm

If I click myself on the button yes, the confirmation dialog gets close.

But if I use the selenium command click to click on the button yes of the confirmation dialog, nothing happens.

nico92

Posts : 5
Join date : 2012-05-22

Back to top Go down

Re: wait for confirmation

Post by rohit13 on Tue May 22, 2012 6:14 pm

Try to use xpath -
Code:
click or clickAt command with
//button[text()='Yes'] as target

_________________
Radical QA
http://radical-qa.blogspot.in/
avatar
rohit13
Master
Master

Posts : 180
Join date : 2012-03-29
Age : 31
Location : INDIA

http://radical-qa.blogspot.in/

Back to top Go down

Re: wait for confirmation

Post by nico92 on Tue May 22, 2012 6:29 pm

It doesn't work with xpath. Selenium doesn't say that it hasn't found the element, but it doesn't work.

nico92

Posts : 5
Join date : 2012-05-22

Back to top Go down

Re: wait for confirmation

Post by rohit13 on Tue May 22, 2012 6:40 pm

yes i got your problem..I was facing same issue earlier..
Have you tried clickAt command??
I have used same xpath when i was facing same issue.

_________________
Radical QA
http://radical-qa.blogspot.in/
avatar
rohit13
Master
Master

Posts : 180
Join date : 2012-03-29
Age : 31
Location : INDIA

http://radical-qa.blogspot.in/

Back to top Go down

Re: wait for confirmation

Post by nico92 on Tue May 22, 2012 7:03 pm

ClickAt doesn't work either.

The problem perhaps comes from the fact that the dialog confirmation is in fact a dijit widget.

nico92

Posts : 5
Join date : 2012-05-22

Back to top Go down

Re: wait for confirmation

Post by nico92 on Fri Jun 29, 2012 3:15 pm

executing javascript to click on the button works:

driver.execute_script("(document.getElementById('dijit_form_Button_0_label')).click()")

nico92

Posts : 5
Join date : 2012-05-22

Back to top Go down

Re: wait for confirmation

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum