1: <?php
2: namespace Azalea\Selenium\App\Encounters;
3:
4: use Azalea\Selenium\Toolkit\View;
5:
6: class EncounterLedger extends View
7: {
8: 9: 10:
11:
12: public function getChargeAt($index)
13: {
14: $charges = $this->querySelectorAll(".charge");
15: if ($index < count($charges)) {
16: return $charges[$index];
17: }
18:
19: throw new \InvalidArgumentException("Could not find a charge at index ".$index);
20: }
21:
22: 23: 24:
25: public function addPaymentAdjustment()
26: {
27: $this->querySelector(
28: $this->selectors->addPaymentAdjustmentButton
29: )->click();
30: }
31: }
32:
33: ?>