The dev website on Drupal has Site Guard. I am trying to automate the website using Selenium but each time it is asking for Site Guard credentials to be entered. I treated it as regular alert but it seems not to be working.
I'm not sure if Siteguard is a software or a service, anyways I think that what you are trying to do is not in the Drupal side, if the development site has some kind of protection, then you must configure that protection, to let you Selenium test to do its work... What about configure Siteguard to not bother a certain IP? Or maybe some cookie?
Hope that helps.
Related
I want to automate the connexion to gmail with selenium 4.
but I get the following message:
Screenshot
how can i disable the detection ?
I have tried all the solutions that exist in the web now, but no result :(
Please Help !
Thank you
Here are some common client-side checks done by many websites to block selenium and other automated browsers.
window._phantom
window.webdriver
window.domAutomation
window.$cdc_asdjflasutopfhvcZLmcfl_
document.$cdc_asdjflasutopfhvcZLmcfl_
window.document.documentElement.getAttribute('webdriver')
navigator.webdriver
window.document.documentElement.getAttribute('driver')
window.document.documentElement.getAttribute('selenium')
window.cdc_adoQpoasnfa76pfcZLmcfl_Array
window.__nightmare
window._Selenium_IDE_Recorder
window.__$webdriverAsyncExecutor
window.__driver_evaluate
window.__selenium_evaluate
window.domAutomationController
window.calledSelenium
window.callSelenium
Majority of checks are in the window, navigator and document javascript object. You can spoof these values using javascript. Make sure your javascript is executed prior to that of the website's.
Using Selenium for emails is overkill. I'd highly suggest looking into the Jakarta Mail API for a much easier, less consumptive approach.
Trying to automate the salesforce application but it has verification code after logged in and couldn't able to find any solutions to automate verification code.Tried using cookies for existing browser session but couldn't able to automate
as it is always opening the salesforce application in new session.Kindly provide any other valuable solutions on this.
You can add your IP to whitelist in Security Controls -> Network Access and the verification code step will not be appear anymore to your pc.
Is it any way to do it ? I have automated script which searches through website with captcha and I noticed that if I open this website manually there is only "I'm not a robot" checkbox but when I open it using selenium there are also several puzzles to solve so server must recognize that my browser "is being controlled by automated test software" as Chrome says.
I tried to use incognito mode but it doesn't help.
The main goal of Captcha is: an application to prevent unauthorized access and automated accessing of the websites using any tools/bots. Selenium(or any Automation Tool) cannot read CAPTCHAs.
So, if y can, mock this service in the staging/test environment.
Also, Captcha is an outside service.
It's not necessary to test Captcha behavior, right?
However (as for everything, a hack is available), you can use some software/websites to convert ‘image to text’ (which would be not ‘always’ correct!)
Another thing, we can set cookies for Captcha. The secret key for captcha should be used in this case.
I am fairly new to Blackberry development and need help in terms of having a simple application. User enters a login/password which is authenticated on a MYSQL database on website. Once authenticated, he/she is shown a listbox/select boxthat is pre populated with some values. Once the user selects a value and hits submit, an email is generated and sent to a dummy email address.
Can someone guide me to either a good tutorial and/or some instructions that can help me set up something like that. Again I am a seasoned developer that is making a transition to Blackberry development. All replies would be highly appreciated.
Thanks
There are some good Blackberry dev tools on the RIM website, you can get a simulator for each type of handset you need to support. When it comes to authentication, as you already suggested, entering credentials is the easiest thing to support, but a bit of a pain for users, you can also look at using your Blackberry gateway as a kind of signing authority and enabling pin/email http headers (see here)
In terms of development, just remember you want a style sheet as basic as possible, and a webpage which is only 320px wide, otherwise its just another browser...
Is there a secure way of logging into a Gmail account on a web browser, from an external Java program? I know the following works, but is there a safer alternative?
Desktop.getDesktop().browse(new URI(
"https://www.google.com/accounts/ServiceLoginAuth?continue=http://mail.google.com/gmail" +
"&service=mail&Email=LOGIN&Passwd=PASSWORD&null=Sign+in"));
Clarification: The external Java program is GmailAssistant, a Gmail notifier that already uses the IMAP capabilities of JavaMail. I just need a way of allowing the user to access the account directly in a web browser.
Depending of how much you want to integrate, you can check Google single sign-on (SSO) api. I'm studing how to use it and the best way to integrate it
http://code.google.com/apis/apps/sso/saml_reference_implementation.html
Victor
UPDATED:
As a better option, you should check this link as well http://esoeproject.org/
If you're really wanting to control a browser from Java, you'll have to use a web-connector such as Selenium or WebDriver. Both of these let you control a browser directly from within Java and simulate a user typing text, clicking on links and submitting forms. One thing to keep in mind when doing this with Selenium is that it interacts with a complete new profile which is usually independent of your standard Firefox probile.
If you are afraid that the link is visible in the Page, create a javascript document that sends a POST request to the server.
If you want to programmatically access the content of a GMail account, I would strongly suggest to use the IMAP access provided by Google.
Looking at the question the other way around, you can setup an OpenID authentication scheme based on your Google account.
I used google's IMAP access with the JavaMail API, and it was very simple.
If you're worried about the URL being sent for the login, understand that:
https:// starts with www.google.com and will encrypt the session before
sending the login details (or even the page it's going to