Project development is new to github. Give us a star.
Swap function Cjax 5.9+ allows you to swap CSS classes.
Examples
PHP
<?php
//Click on text link and swap red and blue
$ajax->click('#link', $ajax->swap('red', 'blue'));
//Click the grey block and swaps the green and red
$ajax->click('.grey', $ajax->swap('green', 'red'));
//Click on any red or blue, and swaps the header of code
$ajax->click('.blue, .red', $ajax->swap('code-used', 'code-used2'));
?>
Try it