Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zest script to disable or click on a prompt dialog box on Chrome #161

Closed
V1Reddy opened this issue Mar 27, 2018 · 8 comments
Closed

Zest script to disable or click on a prompt dialog box on Chrome #161

V1Reddy opened this issue Mar 27, 2018 · 8 comments

Comments

@V1Reddy
Copy link

V1Reddy commented Mar 27, 2018

Hi,
I was wondering if there's a way in zest script to auto click or close a dialog prompt box. I am testing the zest script in ZAP scripts section using the Chrome browser, but stuck while continuing forward due to a dialog box that prompts for username and pwd. The rest of the script doesn't continue unless I cancel this prompt. I tried to use all the zest client options to send keys, click, submit, but nothing seems to work for that javascript promt box.

Is there an option in the zest scripts that I need to be using for these JS prompt boxes? Or is there an option in Chrome browser that I force the browser to auto cancel those prompts?

Any help would be much appreciated!

Thanks.

@thc202
Copy link
Member

thc202 commented Mar 27, 2018

If I'm understanding correctly this is #75. Could you confirm?

@V1Reddy
Copy link
Author

V1Reddy commented Mar 27, 2018

Hi @thc202,
Yes, it is same as #75.

Sorry for opening a duplicate issue!

@thc202
Copy link
Member

thc202 commented Mar 27, 2018

No worries. Merging into that one then.

@thc202
Copy link
Member

thc202 commented Mar 27, 2018

You sure the dialogue shown was from JS and not native? If the latter it would not be #75 :)

@V1Reddy
Copy link
Author

V1Reddy commented Mar 28, 2018

Yeah, it's a dialogue box from JS.

@psiinon
Copy link
Member

psiinon commented Mar 28, 2018

A simple test page which generates a dialog would be very useful :)
Obviously we can create one, but if you can give us one which matches your case then we'll know when fixed it.

@thc202
Copy link
Member

thc202 commented Mar 28, 2018

@V1Reddy ok, I was asking again because Chrome does not allow to interact with the (native) dialogue that prompts for credentials (e.g. basic/digest HTTP authentication).

@psiinon indeed, that would be helpful.

@V1Reddy
Copy link
Author

V1Reddy commented Mar 28, 2018

@thc202 ,
Maybe, I am stating it wrong. It's a prompt for username and pwd and it's a custom JS prompt box, don't think it's native. But I will look into it again and confirm.

@psiinon
Sure thing, I will create a similar one and send it you guys.

Thanks again for your help guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants