Skip to main content

Posts

Showing posts with the label Playwright

Drop-down values for injection

cover_image: https://www.pexels.com/photo/flat-lay-photography-of-gold-iphone-on-opened-notebook-beside-pen-583847/ canonical_url:  --- Photo by Jessica Lewis 🦋 thepaintedsquare   Learning in public is grand, and when you have a team that is willing to help with something that seems simple, but you fall into overthink for the wrong items, it can really help to type out your thoughts, actions, and what the program does to frustrate you. And in this case, getting a value I could see in the debugger was the issue The automation needs to check for page elements – and the drop-down selector triggers potentially different elements. Plus, depending on the user logged in, there may well be different options available in that drop-down. Then, I can get the options available for the user on the drop down, get their values, cycle through them, and verify each set of elements on the page. My test account for this has four options on the drop-down, so I budgeted a couple of hours to get ...

Compare HTML in Playwright .NET

Photo by Miguel Á. Padriñán: https://www.pexels.com/photo/four-letter-tiles-1591061/ Photo by Miguel Á. Padriñán: https://www.pexels.com/photo/four-letter-tiles-1591061/ Photo by Miguel Á. Padriñán: https://www.pexels.com/photo/four-letter-tiles-1591061/ Photo by Miguel Á. Padriñán: https://www.pexels.com/photo/four-letter-tiles-1591061/ Photo by Miguel Á. Padriñán: https://www.pexels.com/photo/four-letter-tiles-1591061/ Photo by Miguel Á. Padriñán: https://www.pexels.com/photo/four-letter-tiles-1591061/ Automating checking text (and its HTML) can be a challenge if you aren't comfortable with the language and framework you are using. Having a limited time for learning and exploring is its own challenge. One of my tasks for automating a smoke test for our project was to verify the text in each environment, with each specific set-up having its own welcoming message. And, I admit, I wasn't quite sure where to start. I knew what I needed, and found out where to fetch it. But gett...