const searchValue = await page.$eval('[name="searchTxt"]', el => el.value);
qawolf.launch({ args: ['--start-fullscreen'] });
getComputedStyle
API here https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle
const color = await page.evaluate(() => {
const videoIcon = document.querySelector( '//span[text()=\'videocam\']');
const videoIconStyles = window.getComputedStyle(videoIcon);
return videoIconStyles.getPropertyValue('color');
});
color
in CSS means font color, which may not be what you want. It may be background-color
, fill
, or stroke
.
videoIcon
is not an element, so perhaps document.querySelector
is returning null
here if the element is not found
const searchValue = await page.$eval('#myId', el => el.value);
QAW_ARTIFACT_PATH=/tmp/testArtifacts/ DEBUG=pw:api BASE_URL=<my_url> yarn qawolf test absoluteDaysSaveCorrectly
@/all we are “soft-launching” QA Wolf 2.0 next week. There are a ton of improvements: much better test creation experience, improved video recording, easier to set up in CI. However we are working on filling in some missing features and adding documentation.
I want to learn from you all what we need to build before we replace 1.0 and release it officially. If you are interested in trying it out lets schedule a time and I will give you access https://calendly.com/jperl/60min