GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( ec220f...79100e )
by Kevin
04:08
created

getUseClicksToNavigate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Magium\Magento\Themes;
4
5
use Magium\AbstractConfigurableElement;
6
use Magium\AbstractTestCase;
7
8
9
abstract class AbstractThemeConfiguration extends AbstractConfigurableElement implements NavigableThemeInterface
10
{
11
12
    public $homeXpath;
13
14
    /**
15
     * @var string The Xpath string that finds the base of the navigation menu
16
     */
17
    public $navigationBaseXPathSelector;
18
19
    /**
20
     * @var string The Xpath string that can be used iteratively to find child navigation nodes
21
     */
22
23
    public $navigationChildXPathSelector;
24
25
    /**
26
     * @var string A simple, default path to use for categories.
27
     */
28
29
    public $navigationPathToSimpleProductCategory;
30
31
    public $navigationPathToConfigurableProductCategory;
32
33
    /**
34
     * @var string Xpath to add a Simple product to the cart from the product's page
35
     */
36
37
    public $addToCartXpath;
38
39
    public $defaultSimpleProductName;
40
    public $defaultConfigurableProductName;
41
42
    /**
43
     * @var string Xpath to add a Simple product to the cart from the category page
44
     */
45
46
    public $categoryAddToCartButtonXPathSelector;
47
48
    /**
49
     * @var string Xpath to find a product's link on a category page.  Used to navigate to the product from the category
50
     */
51
52
    public $categoryProductPageXpath;
53
54
    public $categorySpecificProductPageXpath;
55
56
57
    /**
58
     * @var string Xpath used after a product has been added to the cart to verify that the product has been added to the cart
59
     */
60
61
    public $addToCartSuccessXpath;
62
63
    /**
64
     * @var string The base URL of the installation
65
     */
66
67
    public $baseUrl;
68
69
    public $myAccountTitle;
70
71
    /**
72
     * @var array Instructions in an Xpath array syntax to get to the login page.
73
     */
74
75
    public $navigateToCustomerPageInstructions            = [];
76
77
    /**
78
     * @var array Instructions in an Xpath array syntax to get to the shopping cart
79
     */
80
81
    public $cartNavigationInstructions         = [];
82
83
    /**
84
     * @var array Instructions in an Xpath array syntax to get to the start of the checkout page
85
     */
86
87
    public $checkoutNavigationInstructions         = [];
88
89
    /**
90
     * @var array Instructions in an Xpath array syntax to get to the customer registration page
91
     */
92
93
    public $registrationNavigationInstructions         = [];
94
95
    /**
96
     * @var array Instructions in an Xpath array syntax to get to the customer registration page
97
     */
98
99
    public $logoutNavigationInstructions         = [];
100
101
    public $registerFirstNameXpath;
102
    public $registerLastNameXpath;
103
    public $registerEmailXpath;
104
    public $registerPasswordXpath;
105
    public $registerConfirmPasswordXpath;
106
    public $registerNewsletterXpath;
107
    public $registerSubmitXpath;
108
109
    public $logoutSuccessXpath;
110
111
    /**
112
     * This is a hard one.  Each of the summary checkout products will be iterated over until they cannot be found. Having
113
     * this work in a manner that gets all of the products, in all languages, in all themes, is quite difficult and
114
     * so the Xpath selector needs to be one that can find each individual column with an incrementing iterator.
115
     *
116
     * @see Magium\Magento\Actions\Checkout\Extractors\CartSummary for an example on how this is done
117
     *
118
     * @var string
119
     */
120
121
    public $cartSummaryCheckoutProductLoopPriceXpath;
122
    public $cartSummaryCheckoutProductLoopNameXpath;
123
    public $cartSummaryCheckoutProductLoopQtyXpath;
124
    public $cartSummaryCheckoutProductLoopSubtotalXpath;
125
126
    public $cartSummaryCheckoutSubTotal;
127
    public $cartSummaryCheckoutTax;
128
    public $cartSummaryCheckoutGrandTotal;
129
    public $cartSummaryCheckoutShippingTotal;
130
131
    public $layeredNavigationTestXpath;
132
133
    public $breadCrumbXpath;
134
135
    public $productListBaseXpath;
136
    public $productListDescriptionXpath;
137
    public $productListTitleXpath;
138
    public $productListCompareLinkXpath;
139
    public $productListImageXpath;
140
    public $productListLinkXpath;
141
    public $productListOriginalPriceXpath;
142
    public $productListPriceXpath;
143
    public $productListWishlistLinkXpath;
144
    public $productListAddToCartLinkXpath;
145
146
    public $productGridBaseXpath;
147
    public $productGridDescriptionXpath;
148
    public $productGridTitleXpath;
149
    public $productGridCompareLinkXpath;
150
    public $productGridImageXpath;
151
    public $productGridLinkXpath;
152
    public $productGridOriginalPriceXpath;
153
    public $productGridPriceXpath;
154
    public $productGridWishlistLinkXpath;
155
    public $productGridAddToCartLinkXpath;
156
157
    public $productCollectionViewModeXpath;
158
    public $productCollectionSortByXpath;
159
    public $productCollectionShowCountXpath;
160
    public $productCollectionShowCountOptionsXpath;
161
    public $productCollectionProductCountXpath;
162
163
    public $simpleProductQtyXpath;
164
165
    public $layeredNavigationBaseXpath;
166
167
    public $searchInputXpath;
168
    public $searchSubmitXpath;
169
170
    public $searchSuggestionTextXpath;
171
    public $searchSuggestionCountXpath;
172
173
    public $storeSwitcherInstructionsXpath;
174
175
    public $configurableProductLabelXpath;
176
    public $configurableSwatchSelectorXpath;
177
    public $configurableSwatchImgXpath;
178
    public $configurableSwatchNotAvailableXpath;
179
    public $configurableSwatchOptionLabelAttributeName;
180
181
    public $configurableProductOptionXpath;
182
183
    public $viewModeAttributeName;
184
185
    public $breadCrumbMemberXpath;
186
    public $breadCrumbSelectorXpath;
187
188
    public $layeredNavigationFilterNameXpath;
189
190
    public $layeredNavigationFilterTypesXpath;
191
    public $layeredNavigationFilterLinkXpath;
192
    public $layeredNavigationFilterNameElementXpath;
193
    public $layeredNavigationSwatchAppliesXpath;
194
    public $layeredNavigationSwatchFilterTypesXpath;
195
    public $layeredNavigationSwatchTitleAttribute;
196
197
    abstract public function getCustomerThemeClass();
198
    abstract public function getCheckoutThemeClass();
199
200
    public $guaranteedPageLoadedElementDisplayedXpath = '//div[contains(concat(" ",normalize-space(@class)," ")," footer ")]';
201
202
    public $contactUsNameXpath = '//form[@id="contactForm"]/descendant::input[@id="name"]';
203
    public $contactUsEmailXpath = '//form[@id="contactForm"]/descendant::input[@id="email"]';
204
    public $contactUsTelephoneXpath = '//form[@id="contactForm"]/descendant::input[@id="telephone"]';
205
    public $contactUsCommentXpath = '//form[@id="contactForm"]/descendant::textarea[@id="comment"]';
206
    public $contactUsSubmitXpath = '//form[@id="contactForm"]/descendant::button';
207
208
    public $useClicksToNavigate = false;
209
210
    public function getUseClicksToNavigate()
211
    {
212
        return $this->useClicksToNavigate;
213
    }
214
215
    public function configure(AbstractTestCase $testCase)
216
    {
217
218
    }
219
220
    /**
221
     * @return mixed
222
     */
223
    public function getConfigurableSwatchOptionLabelAttributeName()
224
    {
225
        return $this->configurableSwatchOptionLabelAttributeName;
226
    }
227
228
    /**
229
     * @return string
230
     */
231
    public function getContactUsSubmitXpath()
232
    {
233
        return $this->translatePlaceholders($this->contactUsSubmitXpath);
234
    }
235
236
    /**
237
     * @return string
238
     */
239
    public function getContactUsNameXpath()
240
    {
241
        return $this->translatePlaceholders($this->contactUsNameXpath);
242
    }
243
244
    /**
245
     * @return string
246
     */
247
    public function getContactUsEmailXpath()
248
    {
249
        return $this->translatePlaceholders($this->contactUsEmailXpath);
250
    }
251
252
    /**
253
     * @return string
254
     */
255
    public function getContactUsCommentXpath()
256
    {
257
        return $this->translatePlaceholders($this->contactUsCommentXpath);
258
    }
259
260
    /**
261
     * @return string
262
     */
263
    public function getContactUsTelephoneXpath()
264
    {
265
        return $this->translatePlaceholders($this->contactUsTelephoneXpath);
266
    }
267
268
269
270
    /**
271
     * @return array
272
     */
273
    public function getCartNavigationInstructions()
274
    {
275
        return $this->translatePlaceholders($this->cartNavigationInstructions);
276
    }
277
278
    /**
279
     * @return string
280
     */
281
    public function getLayeredNavigationSwatchTitleAttribute()
282
    {
283
        return $this->layeredNavigationSwatchTitleAttribute;
284
    }
285
286
    /**
287
     * @return mixed
288
     */
289
    public function getLayeredNavigationSwatchAppliesXpath($name)
290
    {
291
        if ($this->layeredNavigationSwatchAppliesXpath) {
292
            return $this->translatePlaceholders(sprintf($this->layeredNavigationSwatchAppliesXpath, $name));
293
        }
294
    }
295
296
    /**
297
     * @return mixed
298
     */
299
    public function getLayeredNavigationSwatchFilterTypesXpath($name)
300
    {
301
        return $this->translatePlaceholders(sprintf($this->layeredNavigationSwatchFilterTypesXpath, $name));
302
    }
303
304
    /**
305
     * @return mixed
306
     */
307
    public function getLayeredNavigationFilterNameElementXpath($name)
308
    {
309
        return $this->translatePlaceholders(sprintf($this->layeredNavigationFilterNameElementXpath, $name));
310
    }
311
312
    /**
313
     * @return string
314
     */
315
    public function getLayeredNavigationFilterTypesXpath($type)
316
    {
317
        return $this->translatePlaceholders(sprintf($this->layeredNavigationFilterTypesXpath, $type));
318
    }
319
320
    /**
321
     * @return string
322
     */
323
    public function getLayeredNavigationFilterLinkXpath($type)
324
    {
325
        return $this->translatePlaceholders(sprintf($this->layeredNavigationFilterLinkXpath, $type));
326
    }
327
328
329
330
    /**
331
     * @return mixed
332
     */
333
    public function getLayeredNavigationFilterNameXpath()
334
    {
335
        return $this->layeredNavigationFilterNameXpath;
336
    }
337
338
    public function getBreadCrumbMemberXpath($name)
339
    {
340
        return $this->getBreadCrumbXpath() . $this->translatePlaceholders(sprintf($this->breadCrumbMemberXpath, $name));
341
    }
342
343
    /**
344
     * @return mixed
345
     */
346
    public function getBreadCrumbSelectorXpath($test)
347
    {
348
        return $this->getBreadCrumbXpath() . sprintf($this->breadCrumbSelectorXpath, $test);
349
    }
350
351
352
353
    /**
354
     * @return mixed
355
     */
356
    public function getConfigurableProductOptionXpath($swatchCount, $label)
357
    {
358
359
        return $this->translatePlaceholders(
360
            sprintf(
361
                $this->configurableProductOptionXpath,
362
                $this->getConfigurableLabelXpath(),
363
                $swatchCount,
364
                $label
365
            )
366
        );
367
    }
368
369
    public function getConfigurableSwatchImgXpath($swatchCount, $optionCount)
370
    {
371
        return $this->translatePlaceholders(
372
            sprintf(
373
                $this->configurableSwatchImgXpath,
374
                $this->getConfigurableLabelXpath(),
375
                $swatchCount,
376
                $optionCount
377
            )
378
        );
379
    }
380
381
    /**
382
     * @return string
383
     */
384
    public function getConfigurableLabelXpath()
385
    {
386
        return $this->configurableProductLabelXpath;
387
    }
388
389
    public function filterConfigurableProductOptionName($swatch)
390
    {
391
        return preg_replace('/^(.+)\:$/', '$1', $swatch);
392
    }
393
394
    /**
395
     * @return string
396
     */
397
    public function getConfigurableSwatchNotAvailableXpath($swatchCount, $optionCount)
398
    {
399
        return $this->translatePlaceholders(
400
            sprintf(
401
                $this->configurableSwatchNotAvailableXpath,
402
                $this->getConfigurableLabelXpath(),
403
                $swatchCount,
404
                $optionCount
405
            )
406
        );
407
    }
408
409
    /**
410
     * @return string
411
     */
412
    public function getConfigurableSwatchSelectorXpath($swatchCount, $optionCount)
413
    {
414
        return $this->translatePlaceholders(
415
            sprintf(
416
                $this->configurableSwatchSelectorXpath,
417
                $this->getConfigurableLabelXpath(),
418
                $swatchCount,
419
                $optionCount
420
            )
421
        );
422
    }
423
424
425
426
    /**
427
     * @return mixed
428
     */
429
    public function getDefaultSimpleProductName()
430
    {
431
        return $this->translatePlaceholders($this->defaultSimpleProductName);
432
    }
433
434
    /**
435
     * @return mixed
436
     */
437
    public function getDefaultConfigurableProductName()
438
    {
439
        return $this->translatePlaceholders($this->defaultConfigurableProductName);
440
    }
441
442
    /**
443
     * @return mixed
444
     */
445
    public function getSimpleProductQtyXpath()
446
    {
447
        return $this->simpleProductQtyXpath;
448
    }
449
450
    public function getGuaranteedPageLoadedElementDisplayedXpath()
451
    {
452
        return $this->translatePlaceholders($this->guaranteedPageLoadedElementDisplayedXpath);
453
    }
454
455
    /**
456
     * @param mixed $guaranteedPageLoadedElementDisplayedXpath
457
     */
458
    public function setGuaranteedPageLoadedElementDisplayedXpath($guaranteedPageLoadedElementDisplayedXpath)
459
    {
460
        $this->guaranteedPageLoadedElementDisplayedXpath = $guaranteedPageLoadedElementDisplayedXpath;
461
    }
462
463
    /**
464
     * @return mixed
465
     */
466
    public function getStoreSwitcherInstructionsXpath($store)
467
    {
468
        $xpaths = $this->storeSwitcherInstructionsXpath;
469
        foreach ($xpaths as &$path) {
470
            if (strpos($path[1], '%s') !== false) {
471
                $path[1] = sprintf($path[1], $store);
472
            }
473
        }
474
        return $xpaths;
475
    }
476
477
    /**
478
     * @return mixed
479
     */
480
    public function getSearchSuggestionTextXpath($count)
481
    {
482
        $xpath = sprintf($this->searchSuggestionTextXpath, $count);
483
        return $this->translatePlaceholders($xpath);
484
    }
485
486
    /**
487
     * @return mixed
488
     */
489
    public function getSearchSuggestionCountXpath($count)
490
    {
491
        $xpath = sprintf($this->searchSuggestionCountXpath, $count);
492
        return $this->translatePlaceholders($xpath);
493
    }
494
495
    /**
496
     * @return mixed
497
     */
498
    public function getSearchSubmitXpath()
499
    {
500
        return $this->translatePlaceholders($this->searchSubmitXpath);
501
    }
502
503
    /**
504
     * @return mixed
505
     */
506
    public function getSearchInputXpath()
507
    {
508
        return $this->translatePlaceholders($this->searchInputXpath);
509
    }
510
511
    /**
512
     * @return mixed
513
     */
514
    public function getCategorySpecificProductPageXpath($productName)
515
    {
516
        $xpath = sprintf($this->categorySpecificProductPageXpath, $productName);
517
        return $this->translatePlaceholders($xpath);
518
    }
519
520
    /**
521
     * @return mixed
522
     */
523
    public function getHomeXpath()
524
    {
525
        return $this->translatePlaceholders($this->homeXpath);
526
    }
527
528
    /**
529
     * @return mixed
530
     */
531
    public function getLayeredNavigationBaseXpath()
532
    {
533
        return $this->layeredNavigationBaseXpath;
534
    }
535
536
    /**
537
     * @return mixed
538
     */
539
    public function getProductCollectionViewModeXpath()
540
    {
541
        return $this->productCollectionViewModeXpath;
542
    }
543
544
    /**
545
     * @return mixed
546
     */
547
    public function getProductCollectionSortByXpath()
548
    {
549
        return $this->productCollectionSortByXpath;
550
    }
551
552
    public function getViewModeAttributeName()
553
    {
554
        return $this->viewModeAttributeName;
555
    }
556
557
    /**
558
     * @return mixed
559
     */
560
    public function getProductCollectionShowCountXpath()
561
    {
562
        return $this->productCollectionShowCountXpath;
563
    }
564
565
    /**
566
     * @return mixed
567
     */
568
    public function getProductCollectionShowCountOptionsXpath()
569
    {
570
        return $this->productCollectionShowCountOptionsXpath;
571
    }
572
573
    /**
574
     * @return mixed
575
     */
576
    public function getProductCollectionProductCountXpath()
577
    {
578
        return $this->productCollectionProductCountXpath;
579
    }
580
581
582
583
    /**
584
     * @return mixed
585
     */
586
    public function getProductListAddToCartLinkXpath($count)
587
    {
588
        return sprintf($this->productListBaseXpath . $this->productListAddToCartLinkXpath, $count);
589
    }
590
591
    /**
592
     * @return mixed
593
     */
594
    public function getProductGridAddToCartLinkXpath($count)
595
    {
596
        return sprintf($this->productGridBaseXpath . $this->productGridAddToCartLinkXpath, $count);
597
    }
598
599
    /**
600
     * @return mixed
601
     */
602
    public function getProductListDescriptionXpath($count)
603
    {
604
        return sprintf($this->productListBaseXpath . $this->productListDescriptionXpath, $count);
605
    }
606
607
    /**
608
     * @return mixed
609
     */
610
    public function getProductListTitleXpath($count)
611
    {
612
        return sprintf($this->productListBaseXpath . $this->productListTitleXpath, $count);
613
    }
614
615
    /**
616
     * @return mixed
617
     */
618
    public function getProductListCompareLinkXpath($count)
619
    {
620
        return sprintf($this->productListBaseXpath . $this->productListCompareLinkXpath, $count);
621
    }
622
623
    /**
624
     * @return mixed
625
     */
626
    public function getProductListImageXpath($count)
627
    {
628
        return sprintf($this->productListBaseXpath . $this->productListImageXpath, $count);
629
    }
630
631
    /**
632
     * @return mixed
633
     */
634
    public function getProductListLinkXpath($count)
635
    {
636
        return sprintf($this->productListBaseXpath . $this->productListLinkXpath, $count);
637
    }
638
639
    /**
640
     * @return mixed
641
     */
642
    public function getProductListOriginalPriceXpath($count)
643
    {
644
        return sprintf($this->productListBaseXpath . $this->productListOriginalPriceXpath, $count);
645
    }
646
647
    /**
648
     * @return mixed
649
     */
650
    public function getProductListPriceXpath($count)
651
    {
652
        return sprintf($this->productListBaseXpath . $this->productListPriceXpath, $count);
653
    }
654
655
    /**
656
     * @return mixed
657
     */
658
    public function getProductListWishlistLinkXpath($count)
659
    {
660
        return sprintf($this->productListBaseXpath . $this->productListWishlistLinkXpath, $count);
661
    }
662
663
    /**
664
     * @return mixed
665
     */
666
    public function getProductGridDescriptionXpath($count)
667
    {
668
        return sprintf($this->productGridBaseXpath . $this->productGridDescriptionXpath, $count);
669
    }
670
671
    /**
672
     * @return mixed
673
     */
674
    public function getProductGridTitleXpath($count)
675
    {
676
        return sprintf($this->productGridBaseXpath . $this->productGridTitleXpath, $count);
677
    }
678
679
    /**
680
     * @return mixed
681
     */
682
    public function getProductGridCompareLinkXpath($count)
683
    {
684
        return sprintf($this->productGridBaseXpath . $this->productGridCompareLinkXpath, $count);
685
    }
686
687
    /**
688
     * @return mixed
689
     */
690
    public function getProductGridImageXpath($count)
691
    {
692
        return sprintf($this->productGridBaseXpath . $this->productGridImageXpath, $count);
693
    }
694
695
    /**
696
     * @return mixed
697
     */
698
    public function getProductGridLinkXpath($count)
699
    {
700
        return sprintf($this->productGridBaseXpath . $this->productGridLinkXpath, $count);
701
    }
702
703
    /**
704
     * @return mixed
705
     */
706
    public function getProductGridOriginalPriceXpath($count)
707
    {
708
        return sprintf($this->productGridBaseXpath . $this->productGridOriginalPriceXpath, $count);
709
    }
710
711
    /**
712
     * @return mixed
713
     */
714
    public function getProductGridPriceXpath($count)
715
    {
716
        return sprintf($this->productGridBaseXpath . $this->productGridPriceXpath, $count);
717
    }
718
719
    /**
720
     * @return mixed
721
     */
722
    public function getProductGridWishlistLinkXpath($count)
723
    {
724
        return sprintf($this->productGridBaseXpath . $this->productGridWishlistLinkXpath, $count);
725
    }
726
727
    /**
728
     * @return mixed
729
     */
730
    public function getBreadCrumbXpath()
731
    {
732
        return $this->breadCrumbXpath;
733
    }
734
735
    /**
736
     * @return mixed
737
     */
738
    public function getLayeredNavigationTestXpath()
739
    {
740
        return $this->layeredNavigationTestXpath;
741
    }
742
743
    public function getBaseUrl()
744
    {
745
        return $this->baseUrl;
746
    }
747
748
    /**
749
     * @return string
750
     */
751
    public function getLogoutSuccessXpath()
752
    {
753
        return$this->translatePlaceholders( $this->logoutSuccessXpath);
754
    }
755
756
    /**
757
     * @return array
758
     */
759
    public function getLogoutNavigationInstructions()
760
    {
761
        return $this->translatePlaceholders($this->logoutNavigationInstructions);
762
    }
763
764
765
    /**
766
     * @return string
767
     */
768
    public function getMyAccountTitle()
769
    {
770
        return $this->translatePlaceholders($this->myAccountTitle);
771
    }
772
773
    /**
774
     * @return string
775
     */
776
    public function getRegisterFirstNameXpath()
777
    {
778
        return $this->translatePlaceholders($this->registerFirstNameXpath);
779
    }
780
781
    /**
782
     * @return string
783
     */
784
    public function getRegisterLastNameXpath()
785
    {
786
        return $this->translatePlaceholders($this->registerLastNameXpath);
787
    }
788
789
    /**
790
     * @return string
791
     */
792
    public function getRegisterEmailXpath()
793
    {
794
        return$this->translatePlaceholders($this->registerEmailXpath);
795
    }
796
797
    /**
798
     * @return string
799
     */
800
    public function getRegisterPasswordXpath()
801
    {
802
        return $this->translatePlaceholders($this->registerPasswordXpath);
803
    }
804
805
    /**
806
     * @return string
807
     */
808
    public function getRegisterConfirmPasswordXpath()
809
    {
810
        return $this->translatePlaceholders($this->registerConfirmPasswordXpath);
811
    }
812
813
    /**
814
     * @return string
815
     */
816
    public function getRegisterNewsletterXpath()
817
    {
818
        return $this->translatePlaceholders($this->registerNewsletterXpath);
819
    }
820
821
    /**
822
     * @return string
823
     */
824
    public function getRegisterSubmitXpath()
825
    {
826
        return $this->translatePlaceholders($this->registerSubmitXpath);
827
    }
828
829
    /**
830
     * @return array
831
     */
832
    public function getRegistrationNavigationInstructions()
833
    {
834
        return $this->translatePlaceholders($this->registrationNavigationInstructions);
835
    }
836
837
    public function getCheckoutNavigationInstructions()
838
    {
839
        return $this->translatePlaceholders($this->checkoutNavigationInstructions);
840
    }
841
842
    public function getProductPageForCategory()
843
    {
844
        return $this->translatePlaceholders($this->categoryProductPageXpath);
845
    }
846
847
    public function getAddToCartSuccessXpath()
848
    {
849
        return $this->translatePlaceholders($this->addToCartSuccessXpath);
850
    }
851
852
    public function getNavigateToCustomerPageInstructions()
853
    {
854
        return $this->translatePlaceholders($this->navigateToCustomerPageInstructions);
855
    }
856
857
    public function getNavigationBaseXPathSelector()
858
    {
859
        return $this->translatePlaceholders($this->navigationBaseXPathSelector);
860
    }
861
862
    public function getNavigationChildXPathSelector($text)
863
    {
864
        $return = sprintf($this->navigationChildXPathSelector, $text);
865
        return $this->translatePlaceholders($return);
866
    }
867
868
    public function getNavigationPathToSimpleProductCategory()
869
    {
870
        return $this->translatePlaceholders($this->navigationPathToSimpleProductCategory);
871
    }
872
873
    public function getNavigationPathToConfigurableProductCategory()
874
    {
875
        return $this->translatePlaceholders($this->navigationPathToConfigurableProductCategory);
876
    }
877
878
    public function getCategoryAddToCartButtonXPathSelector()
879
    {
880
        return $this->translatePlaceholders($this->categoryAddToCartButtonXPathSelector);
881
    }
882
883
884
    public function getAddToCartXpath()
885
    {
886
        return $this->translatePlaceholders($this->addToCartXpath);
887
    }
888
889
890
891
}