with Playwright and Tricentis qTest?
Playwright is a Node.js library which provides a high-level API to control Chrome/Chromium over the DevTools Protocol. Playwright runs in headless mode on Chromium on Pipedream.
Using Playwright you can perform tasks including:
import { playwright } from '@pipedream/browsers';
export default defineComponent({
async run({steps, $}) {
const browser = await playwright.launch();
// Interact with the web page programmatically
// See Playwright's Page documentation for available methods:
// https://playwright.dev/docs/api/class-page
const page = await browser.newPage();
await page.goto('https://pipedream.com/');
const title = await page.title();
const content = await page.content();
// Close context and browser otherwise the step will hang
await page.context().close()
await browser.close();
return { title, content }
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
tricentis_qtest: {
type: "app",
app: "tricentis_qtest",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.tricentis_qtest.$auth.qtest_base_uri}/api/v3/re-evaluation`,
headers: {
Authorization: `Bearer ${this.tricentis_qtest.$auth.oauth_access_token}`,
},
params: {
includeInaccessibleApps: `false`,
},
})
},
})