Forum Discussion

wadezone's avatar
wadezone
Frequent Visitor
5 years ago
Solved

Report testing Automation (using Playwright) - unable to click button

I have been asked to figure out report automation testing for our analtyic reports on our internal company site. The reports are done in Power BI. I need to be able to search for something, drill t...
  • wadezone's avatar
    wadezone
    5 years ago

    Not sure why my reply back wasn't working. Third attempt. Thanks Greg for the link to the article. No, I had not seen that. My testing needs to mimic the user's experence within the visuals. Our reports do use DAX queries but not from the original source. I can see maybe trying to incorporate the DAX Sudio to query against the original source and then verify it against the visual. It is definitely something I will check out. To mimic the user's maniuplation of the visuals I will still need to automate the objects on the report in the website. 

     

    In case someone else is trying to get the button action to happen, I did get this to work with the frame object but not the page. I did the following:

     

    const test = await frame.evaluate(() =>
    document.querySelector("#sandbox-host > div > button.c-glyph.search-button").click()
    );