How to click elements hidden by list and dropdown ,and how to handle chrome password notification

33 views
Skip to first unread message

Ankit Chawhan

unread,
May 9, 2017, 12:38:25 PM5/9/17
to Selenium Users

Hi 

     I am attaching screenshot of doubts i have two problems i have highlighted both the problem in screenshot

1. i want to close password alert which is coming i am not able to handle it.kindly help i am also confused if its a javascript pop or windows alert ?kindly explain

2. i selected new user story from dropdown and under the dropdown(version) there is save button which i want to click ,but due to dropdown i am not able to click the button kindly help

Selenium D.png

thi...@thoughtworks.com

unread,
May 26, 2017, 12:57:04 PM5/26/17
to Selenium Users
Hi,
For first point,Try the below code to prevent google from storing passwords and hence you will get rid of the password pop up.
For second point,please share the respective DOM content for the objects 
Map<String, Object> prefs = new HashMap<String, Object>();
prefs.put("credentials_enable_service", false);
ChromeOptions options = new ChromeOptions();
options.setExperimentalOption("prefs", prefs);
driver = new ChromeDriver(options);
Reply all
Reply to author
Forward
0 new messages