SymfonyLive London 2018 - Kévin Dunglas - Panther: test your Symfony apps with real web browsers

preview_player
Показать описание
From a few lines of jQuery to modern React/Vue… PWA, Symfony apps always contain JavaScript code. Unfortunately, the SF functional test helper and the Goutte web scrapping lib aren’t able to execute JS code. It means that they cannot assert on client-side generated HTML, test if an element is visible or not, deal with alert boxes or detect if a bug occurs only with a specific browser.

Panther is a brand new e2e testing and web scrapping library written in PHP that drives real browsers thanks to the WebDriver protocol from the W3C. It implements the exact same API than the BrowserKit component. It means than existing SF tests and Goutte scripts work without modification… but this time JS will be executed! The tool also brings new capabilities including taking screenshots, or executing custom JS in the execution context of the web page. To install Panther you only have one command to run, and it doesn’t need any dependency to install Panther. Let’s meet the feline!
Рекомендации по теме
Комментарии
Автор

I'm creating an app to get Order Tracking Update Data from a website that does not offer API for this..

I have already made my app work locally...

but as I was making my app live on my Centos OS server - it simply did not work...

After searching your documentation, I found that for Panther to work, it would need a locally installed chrome browser..

How can I make my symfony panther powered app to work on my CPanel?

or there a way to make my app work/live on the web?

Colzzky
Автор

Awesome! As least i understand all this )

antonivanov
Автор

where is video about mailer ? yesterday i watched it but suddenly it was delete

pdpp