Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Erica Garcete
    @PinkWhale_gitlab
    I just found this tool two days ago and have been using It those days. Just asking, Can I contribute for the Spanish version of the website/tutorial?
    Laura Cressman
    @flaurida
    Hi @PinkWhale_gitlab of course! thank you :blush:
    We can let you know when we set up internationalization?
    Erica Garcete
    @PinkWhale_gitlab
    of course, I'd be glad to do it. Thank you :D @flaurida
    Laura Cressman
    @flaurida
    Thank you for offering @PinkWhale_gitlab :grinning:
    Erica Garcete
    @PinkWhale_gitlab
    Good morning! Which is the best Reporting tool for QA wolf?
    8 replies
    Vesnushki
    @Vesnushki
    Hello, guys!
    Could somebody help me with finding elements on the page?
    page.$$(selector) - can I use this expression for finding elements by css selector?
    what is the difference between page.$$(selector) and page.$(selector)?
    3 replies
    AndrewLazare443
    @AndrewLazare443
    Hi all new to QA Wolf. I know where I messed up...I dont know how to fix it though. How can i set my path back to Default?
    Laura Cressman
    @flaurida
    Hi @AndrewLazare443 check out this guide https://docs.qawolf.com/docs/configure_qa_wolf
    In short please check the qawolf.config.js file. Let us know if that solves your problem!
    Jara Quintana
    @jaraqz_twitter
    Hi!!
    Is it possibe to assign an order to test when you run all of them in --runInBand???
    Laura Cressman
    @flaurida
    Hi @jaraqz_twitter - I believe so, this is just a jest setting. This issue has a few ideas, let me know if it helps! facebook/jest#6194
    Vesnushki
    @Vesnushki
    Hello, the community! Please help me with finding the element's text ? I am new in qawolf
    Laura Cressman
    @flaurida
    25 replies
    for example: const myText = await page.innerText('#mySelector')
    let me know if that helps!
    Jon Perl
    @jperl
    /all qawolf@1.4.0 is now released. Lots of improvements:
    • Upgrade playwright to 1.4.1
    • Pressing reload now creates page.reload()
    • Pressing back now creates page.goBack()
    • Opening a new tab creates context.newPage()
    • Entering a url into the address bar creates page.goto(url)
    • When switching between multiple pages, page.bringToFront is called
    • Improved selectors for dynamic attributes
    • Improved selectors to consider other targets
    Jon Perl
    @jperl
    Let us know if you have any feedback about it!
    AndrewLazare443
    @AndrewLazare443
    Hi all. I am new to QA Wolf. I was wondering how to handle the ssl cert issue?
    9 replies
    Jon Perl
    @jperl
    @AndrewLazare443 It might be better if we debug it on a call https://calendly.com/jperl/30min
    AndrewLazare443
    @AndrewLazare443
    I'm so sorry man, yesterday was my forced day off. I have to make myself some times lol. I really would love the opportunity in general and I really do appreciate the offer.
    Laura Cressman
    @flaurida
    @AndrewLazare443 no worries! please feel free to schedule the call if you are still stuck - you can choose a day that works for you. hope you had a relaxing day off :relaxed: https://calendly.com/jperl/30min
    Sahil Sharma
    @imdevgun
    Hi, Can i run chrome browser instead of chromium in qawolf? If yes can anyone please guide me to configure it.
    Laura Cressman
    @flaurida
    Hi @imdevgun :wave: you can, you just need to configure it
    See this issue: microsoft/playwright#2509
    Please let me know if this helps!
    Sahil Sharma
    @imdevgun
    @flaurida Thank you for the prompt response. It works. I have a rather beginner question since I'm new to JavaScript. I am not able to import modules. Keep getting an error "Import statements cannot be outside a module". Online solutions suggest adding "type" = "module" to the <script> tag. But, I'm not using and <script> tags, I'm simply writing code for test automation and not using any html body. I hope my question makes some sense. Thank you!
    Vesnushki
    @Vesnushki
    Hello, the community! Help me please with extracting value form input. Use this way document.querySelector('[name="searchTxt"]').value; but was unsuccessfull.
    Laura Cressman
    @flaurida
    Hi @imdevgun I'd need to see more of your code to help here, would you mind sending me a direct message? No worries I think we can sort this out :)
    @Vesnushki can you try this? const searchValue = await page.$eval('#search', el => el.value);
    Make sure to replace the selector, like so: const searchValue = await page.$eval('[name="searchTxt"]', el => el.value);
    2 replies
    Vesnushki
    @Vesnushki
    Hello, guys! Is any chance to configure the browser to fullscreen mode? was unable to find any info.
    Laura Cressman
    @flaurida
    @Vesnushki try passing the --start-fullscreen flag to the args key in launch:
    ie qawolf.launch({ args: ['--start-fullscreen'] });
    19 replies
    maheshpatnam
    @maheshpatnam
    @jperl can you please tell me how to get colour of webelement? . I am using following code , But it is not working
    const videoIconSelector = '//span[text()=\'videocam\']';
    let videoIconColour = page.getAttribute(videoIconSelector,'color');
    console.log(videoIconColour);
    maheshpatnam
    @maheshpatnam
    @flaurida can u please help me?
    Laura Cressman
    @flaurida
    Hi @maheshpatnam are you trying to get the CSS color (as in font color), or background color?
    ie something like
    const color = await page.evaluate(() => {
      const videoIcon = document.querySelector( '//span[text()=\'videocam\']');
      const videoIconStyles = window.getComputedStyle(videoIcon);
      return videoIconStyles.getPropertyValue('color');
    });
    Note that it may look slightly different for you - color in CSS means font color, which may not be what you want. It may be background-color, fill, or stroke.
    maheshpatnam
    @maheshpatnam
    Thanks @flaurida , I will check now
    maheshpatnam
    @maheshpatnam
    page.evaluate: Evaluation failed: TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
    at eval (playwright_evaluation_script517:3:40)
    at UtilityScript.callFunction (playwright_evaluation_script462:305:24)
    at UtilityScript.<anonymous> (playwright_evaluation_script518:1:44) Getting this @flaurida
    Laura Cressman
    @flaurida
    @maheshpatnam OK, I see. I'd probably add a console log to see what the videoIcon is. I am happy to debug on a call with you as well if you are willing. feel free to DM me
    From the error message it looks like videoIcon is not an element, so perhaps document.querySelector is returning null here if the element is not found
    maheshpatnam
    @maheshpatnam
    @flaurida i used this code , it worked for me , Thanks