Java + Pa11y + login web page - pa11y

I am a beginner to Pa11y. The web application on which I am working needs user login. Once the user logs in then then only the rest of the pages are visible.
Any idea how can I use pa11y to login to the web page and run pa11y on those pages using java ?
We use java in pur project. Is ther any way to achieve this using java and how?
Your help is much appreciated as I could not find any example on internet which uses java + pa11y + web page login

Pa11y is a NodeJS application that spins up an instance of a headless browser, injects some JavaScript into the rendered page, then runs a series of tests against that rendered page. It doesn't interact in any way with the server-side technology of your website, so that's why you can't find instructions for using Pa11y with Java.
The Pa11y documentation explains how to log into a webpage using basic auth or through the site's login form. See How can Pa11y log in if my site's behind basic auth? and How can Pa11y log in if my site has a log in form?
Hope this helps!

Related

Planting an Iframe as Aura component to show an external system that receives information from Salesforce API using oAuth web server flow

I have built a web app for our sales team.
The web app is currently using oAuth web server flow in order to authenticate with Salesforce.
Everything is working fine when running it on a separate tab.
We recently wanted to add some functionality from within Salesforce specific objects and display information from our web app.
So I've built an aura component displaying an Iframe with the URL from our web app.
Unfortunately, it crashes with a console error
Refused to frame 'https://***.my.salesforce.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'".
So I went to Salesforce's login page and indeed, there is a policy header that prevents it from being loaded from within an Iframe.
What is the correct way to authenticate the user with Salesforce in this situation?
Thank you very much
If you are calling a web app inside of an Iframe(Aura component) it would require the Salesforce domain calling it to be whitelisted in the web app.

Js cookie Pyqt web browser

I’m trying to make a web browser with pyqt5. When I run web pages such as YouTube or yahoo, I see in the cmd prompt that it couldn’t enable the js cookie. How do I get this to work thanks

Jmeter load testing in SPA

I am beginner in Load testing and I am doing load testing using JMeter on a single page web application. The issue which I am facing right now that as you know in SPA there is a single URL and page contains multiple tabs, how I can switch between the tabs using JMeter. You can see my test plan in below image.
I Know I have little knowledge, any link or guidelines are welcome as there is a limited information on google regarding SPA.
Do not compare the load testing with automation testing. Jmeter can only trigger the request that your system is sending to server. The steps you need to do:
Open your URL in chrome/firefox
Inspect the page or tap f12 on keyboard.
Go to network tab
Now click on the tabs you have in your webpage
check if there is any request being passed to server when navigating through tabs.
If yes, replicate the same request by adding a HTTP Request in jmeter and provide the request headers and parameters same as that of the request being passed.

handle windows login pop-up using selenium web driver for https website

My scenario:
I am opening a https website, I get a login pop-up that is not identified by selenium webdriver. I have searched and found the below link which had similar question.
How to handle login pop up window using Selenium WebDriver?
I tried he solution given by #Pavel Janicek to pass the credentials via URL
It does not working for me, I mean after the browser is opened it keeps processing nothing happens after that.
In my case, it is a https site,i need to give username#domainname & password to login, giving only username will not work
my url looks like this
https://username#domainname:password#sitename.com
Has anyone faced this kind of problem?
Thanks
You can NOT auth with this window(in selenium without any additional framework as Robot). But you can auth without getting this window. Try change URL to: http://user:password#www.yourserveradress.com
if this will not help, you need to create separated profile in browser, pass authentication on this server and remember password and use this profile in selenium. Also I think its possible to use Windows active directory authentication, but cannot sure about details.

JavaScript redirect in web context of HTML & JS store app

I'm having an issue with an which sits behind an enterprise authentication system. The app is an HTML5 web app which is loaded remotely through an iframe. This works fine, until the authentication system is integrated; this uses a javascript redirect which WinJS refuses to follow and logs an error APPHOST9624.
Is there a way around this?