Hayk o
Hayk o

Reputation: 1

Google Drive open password protected PDF file in WebView

I am trying to open in WebView Google Drive hosted PDF file which is password protected. Here is the file link

So, after page load finished, using following java script command I'm injecting password to password input.

document.getElementsByClassName('ndfHFb-c4YZDc-UmsTj-YPqjbf')[0].value = '123456'

But I am struggling to emulate "SUBMIT" button press. What java script command should I use to emulate SUBMIT button click?

I have tried this commands, but it didn't work

document.getElementsByClassName('ndfHFb-c4YZDc-UmsTj-YPqjbf')[0].focus()
document.getElementsByClassName('ndfHFb-c4YZDc-UmsTj-YPqjbf')[0].click()

Upvotes: 0

Views: 83

Answers (0)

Related Questions