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 ( d92e3f...c903c8 )
by Kevin
05:59 queued 02:42
created

getConfigurableSwatchOptionLabelAttributeName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
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
209
    public function configure(AbstractTestCase $testCase)
210
    {
211
212
    }
213
214
    /**
215
     * @return mixed
216
     */
217
    public function getConfigurableSwatchOptionLabelAttributeName()
218
    {
219
        return $this->configurableSwatchOptionLabelAttributeName;
220
    }
221
222
    /**
223
     * @return string
224
     */
225
    public function getContactUsSubmitXpath()
226
    {
227
        return $this->translatePlaceholders($this->contactUsSubmitXpath);
228
    }
229
230
    /**
231
     * @return string
232
     */
233
    public function getContactUsNameXpath()
234
    {
235
        return $this->translatePlaceholders($this->contactUsNameXpath);
236
    }
237
238
    /**
239
     * @return string
240
     */
241
    public function getContactUsEmailXpath()
242
    {
243
        return $this->translatePlaceholders($this->contactUsEmailXpath);
244
    }
245
246
    /**
247
     * @return string
248
     */
249
    public function getContactUsCommentXpath()
250
    {
251
        return $this->translatePlaceholders($this->contactUsCommentXpath);
252
    }
253
254
    /**
255
     * @return string
256
     */
257
    public function getContactUsTelephoneXpath()
258
    {
259
        return $this->translatePlaceholders($this->contactUsTelephoneXpath);
260
    }
261
262
263
264
    /**
265
     * @return array
266
     */
267
    public function getCartNavigationInstructions()
268
    {
269
        return $this->translatePlaceholders($this->cartNavigationInstructions);
270
    }
271
272
    /**
273
     * @return string
274
     */
275
    public function getLayeredNavigationSwatchTitleAttribute()
276
    {
277
        return $this->layeredNavigationSwatchTitleAttribute;
278
    }
279
280
    /**
281
     * @return mixed
282
     */
283
    public function getLayeredNavigationSwatchAppliesXpath($name)
284
    {
285
        if ($this->layeredNavigationSwatchAppliesXpath) {
286
            return $this->translatePlaceholders(sprintf($this->layeredNavigationSwatchAppliesXpath, $name));
287
        }
288
    }
289
290
    /**
291
     * @return mixed
292
     */
293
    public function getLayeredNavigationSwatchFilterTypesXpath($name)
294
    {
295
        return $this->translatePlaceholders(sprintf($this->layeredNavigationSwatchFilterTypesXpath, $name));
296
    }
297
298
    /**
299
     * @return mixed
300
     */
301
    public function getLayeredNavigationFilterNameElementXpath($name)
302
    {
303
        return $this->translatePlaceholders(sprintf($this->layeredNavigationFilterNameElementXpath, $name));
304
    }
305
306
    /**
307
     * @return string
308
     */
309
    public function getLayeredNavigationFilterTypesXpath($type)
310
    {
311
        return $this->translatePlaceholders(sprintf($this->layeredNavigationFilterTypesXpath, $type));
312
    }
313
314
    /**
315
     * @return string
316
     */
317
    public function getLayeredNavigationFilterLinkXpath($type)
318
    {
319
        return $this->translatePlaceholders(sprintf($this->layeredNavigationFilterLinkXpath, $type));
320
    }
321
322
323
324
    /**
325
     * @return mixed
326
     */
327
    public function getLayeredNavigationFilterNameXpath()
328
    {
329
        return $this->layeredNavigationFilterNameXpath;
330
    }
331
332
    public function getBreadCrumbMemberXpath($name)
333
    {
334
        return $this->getBreadCrumbXpath() . $this->translatePlaceholders(sprintf($this->breadCrumbMemberXpath, $name));
335
    }
336
337
    /**
338
     * @return mixed
339
     */
340
    public function getBreadCrumbSelectorXpath($test)
341
    {
342
        return $this->getBreadCrumbXpath() . sprintf($this->breadCrumbSelectorXpath, $test);
343
    }
344
345
346
347
    /**
348
     * @return mixed
349
     */
350
    public function getConfigurableProductOptionXpath($swatchCount, $label)
351
    {
352
353
        return $this->translatePlaceholders(
354
            sprintf(
355
                $this->configurableProductOptionXpath,
356
                $this->getConfigurableLabelXpath(),
357
                $swatchCount,
358
                $label
359
            )
360
        );
361
    }
362
363
    public function getConfigurableSwatchImgXpath($swatchCount, $optionCount)
364
    {
365
        return $this->translatePlaceholders(
366
            sprintf(
367
                $this->configurableSwatchImgXpath,
368
                $this->getConfigurableLabelXpath(),
369
                $swatchCount,
370
                $optionCount
371
            )
372
        );
373
    }
374
375
    /**
376
     * @return string
377
     */
378
    public function getConfigurableLabelXpath()
379
    {
380
        return $this->configurableProductLabelXpath;
381
    }
382
383
    public function filterConfigurableProductOptionName($swatch)
384
    {
385
        return preg_replace('/^(.+)\:$/', '$1', $swatch);
386
    }
387
388
    /**
389
     * @return string
390
     */
391
    public function getConfigurableSwatchNotAvailableXpath($swatchCount, $optionCount)
392
    {
393
        return $this->translatePlaceholders(
394
            sprintf(
395
                $this->configurableSwatchNotAvailableXpath,
396
                $this->getConfigurableLabelXpath(),
397
                $swatchCount,
398
                $optionCount
399
            )
400
        );
401
    }
402
403
    /**
404
     * @return string
405
     */
406
    public function getConfigurableSwatchSelectorXpath($swatchCount, $optionCount)
407
    {
408
        return $this->translatePlaceholders(
409
            sprintf(
410
                $this->configurableSwatchSelectorXpath,
411
                $this->getConfigurableLabelXpath(),
412
                $swatchCount,
413
                $optionCount
414
            )
415
        );
416
    }
417
418
419
420
    /**
421
     * @return mixed
422
     */
423
    public function getDefaultSimpleProductName()
424
    {
425
        return $this->translatePlaceholders($this->defaultSimpleProductName);
426
    }
427
428
    /**
429
     * @return mixed
430
     */
431
    public function getDefaultConfigurableProductName()
432
    {
433
        return $this->translatePlaceholders($this->defaultConfigurableProductName);
434
    }
435
436
    /**
437
     * @return mixed
438
     */
439
    public function getSimpleProductQtyXpath()
440
    {
441
        return $this->simpleProductQtyXpath;
442
    }
443
444
    public function getGuaranteedPageLoadedElementDisplayedXpath()
445
    {
446
        return $this->translatePlaceholders($this->guaranteedPageLoadedElementDisplayedXpath);
447
    }
448
449
    /**
450
     * @param mixed $guaranteedPageLoadedElementDisplayedXpath
451
     */
452
    public function setGuaranteedPageLoadedElementDisplayedXpath($guaranteedPageLoadedElementDisplayedXpath)
453
    {
454
        $this->guaranteedPageLoadedElementDisplayedXpath = $guaranteedPageLoadedElementDisplayedXpath;
455
    }
456
457
    /**
458
     * @return mixed
459
     */
460
    public function getStoreSwitcherInstructionsXpath($store)
461
    {
462
        $xpaths = $this->storeSwitcherInstructionsXpath;
463
        foreach ($xpaths as &$path) {
464
            if (strpos($path[1], '%s') !== false) {
465
                $path[1] = sprintf($path[1], $store);
466
            }
467
        }
468
        return $xpaths;
469
    }
470
471
    /**
472
     * @return mixed
473
     */
474
    public function getSearchSuggestionTextXpath($count)
475
    {
476
        $xpath = sprintf($this->searchSuggestionTextXpath, $count);
477
        return $this->translatePlaceholders($xpath);
478
    }
479
480
    /**
481
     * @return mixed
482
     */
483
    public function getSearchSuggestionCountXpath($count)
484
    {
485
        $xpath = sprintf($this->searchSuggestionCountXpath, $count);
486
        return $this->translatePlaceholders($xpath);
487
    }
488
489
    /**
490
     * @return mixed
491
     */
492
    public function getSearchSubmitXpath()
493
    {
494
        return $this->translatePlaceholders($this->searchSubmitXpath);
495
    }
496
497
    /**
498
     * @return mixed
499
     */
500
    public function getSearchInputXpath()
501
    {
502
        return $this->translatePlaceholders($this->searchInputXpath);
503
    }
504
505
    /**
506
     * @return mixed
507
     */
508
    public function getCategorySpecificProductPageXpath($productName)
509
    {
510
        $xpath = sprintf($this->categorySpecificProductPageXpath, $productName);
511
        return $this->translatePlaceholders($xpath);
512
    }
513
514
    /**
515
     * @return mixed
516
     */
517
    public function getHomeXpath()
518
    {
519
        return $this->translatePlaceholders($this->homeXpath);
520
    }
521
522
    /**
523
     * @return mixed
524
     */
525
    public function getLayeredNavigationBaseXpath()
526
    {
527
        return $this->layeredNavigationBaseXpath;
528
    }
529
530
    /**
531
     * @return mixed
532
     */
533
    public function getProductCollectionViewModeXpath()
534
    {
535
        return $this->productCollectionViewModeXpath;
536
    }
537
538
    /**
539
     * @return mixed
540
     */
541
    public function getProductCollectionSortByXpath()
542
    {
543
        return $this->productCollectionSortByXpath;
544
    }
545
546
    public function getViewModeAttributeName()
547
    {
548
        return $this->viewModeAttributeName;
549
    }
550
551
    /**
552
     * @return mixed
553
     */
554
    public function getProductCollectionShowCountXpath()
555
    {
556
        return $this->productCollectionShowCountXpath;
557
    }
558
559
    /**
560
     * @return mixed
561
     */
562
    public function getProductCollectionShowCountOptionsXpath()
563
    {
564
        return $this->productCollectionShowCountOptionsXpath;
565
    }
566
567
    /**
568
     * @return mixed
569
     */
570
    public function getProductCollectionProductCountXpath()
571
    {
572
        return $this->productCollectionProductCountXpath;
573
    }
574
575
576
577
    /**
578
     * @return mixed
579
     */
580
    public function getProductListAddToCartLinkXpath($count)
581
    {
582
        return sprintf($this->productListBaseXpath . $this->productListAddToCartLinkXpath, $count);
583
    }
584
585
    /**
586
     * @return mixed
587
     */
588
    public function getProductGridAddToCartLinkXpath($count)
589
    {
590
        return sprintf($this->productGridBaseXpath . $this->productGridAddToCartLinkXpath, $count);
591
    }
592
593
    /**
594
     * @return mixed
595
     */
596
    public function getProductListDescriptionXpath($count)
597
    {
598
        return sprintf($this->productListBaseXpath . $this->productListDescriptionXpath, $count);
599
    }
600
601
    /**
602
     * @return mixed
603
     */
604
    public function getProductListTitleXpath($count)
605
    {
606
        return sprintf($this->productListBaseXpath . $this->productListTitleXpath, $count);
607
    }
608
609
    /**
610
     * @return mixed
611
     */
612
    public function getProductListCompareLinkXpath($count)
613
    {
614
        return sprintf($this->productListBaseXpath . $this->productListCompareLinkXpath, $count);
615
    }
616
617
    /**
618
     * @return mixed
619
     */
620
    public function getProductListImageXpath($count)
621
    {
622
        return sprintf($this->productListBaseXpath . $this->productListImageXpath, $count);
623
    }
624
625
    /**
626
     * @return mixed
627
     */
628
    public function getProductListLinkXpath($count)
629
    {
630
        return sprintf($this->productListBaseXpath . $this->productListLinkXpath, $count);
631
    }
632
633
    /**
634
     * @return mixed
635
     */
636
    public function getProductListOriginalPriceXpath($count)
637
    {
638
        return sprintf($this->productListBaseXpath . $this->productListOriginalPriceXpath, $count);
639
    }
640
641
    /**
642
     * @return mixed
643
     */
644
    public function getProductListPriceXpath($count)
645
    {
646
        return sprintf($this->productListBaseXpath . $this->productListPriceXpath, $count);
647
    }
648
649
    /**
650
     * @return mixed
651
     */
652
    public function getProductListWishlistLinkXpath($count)
653
    {
654
        return sprintf($this->productListBaseXpath . $this->productListWishlistLinkXpath, $count);
655
    }
656
657
    /**
658
     * @return mixed
659
     */
660
    public function getProductGridDescriptionXpath($count)
661
    {
662
        return sprintf($this->productGridBaseXpath . $this->productGridDescriptionXpath, $count);
663
    }
664
665
    /**
666
     * @return mixed
667
     */
668
    public function getProductGridTitleXpath($count)
669
    {
670
        return sprintf($this->productGridBaseXpath . $this->productGridTitleXpath, $count);
671
    }
672
673
    /**
674
     * @return mixed
675
     */
676
    public function getProductGridCompareLinkXpath($count)
677
    {
678
        return sprintf($this->productGridBaseXpath . $this->productGridCompareLinkXpath, $count);
679
    }
680
681
    /**
682
     * @return mixed
683
     */
684
    public function getProductGridImageXpath($count)
685
    {
686
        return sprintf($this->productGridBaseXpath . $this->productGridImageXpath, $count);
687
    }
688
689
    /**
690
     * @return mixed
691
     */
692
    public function getProductGridLinkXpath($count)
693
    {
694
        return sprintf($this->productGridBaseXpath . $this->productGridLinkXpath, $count);
695
    }
696
697
    /**
698
     * @return mixed
699
     */
700
    public function getProductGridOriginalPriceXpath($count)
701
    {
702
        return sprintf($this->productGridBaseXpath . $this->productGridOriginalPriceXpath, $count);
703
    }
704
705
    /**
706
     * @return mixed
707
     */
708
    public function getProductGridPriceXpath($count)
709
    {
710
        return sprintf($this->productGridBaseXpath . $this->productGridPriceXpath, $count);
711
    }
712
713
    /**
714
     * @return mixed
715
     */
716
    public function getProductGridWishlistLinkXpath($count)
717
    {
718
        return sprintf($this->productGridBaseXpath . $this->productGridWishlistLinkXpath, $count);
719
    }
720
721
    /**
722
     * @return mixed
723
     */
724
    public function getBreadCrumbXpath()
725
    {
726
        return $this->breadCrumbXpath;
727
    }
728
729
    /**
730
     * @return mixed
731
     */
732
    public function getLayeredNavigationTestXpath()
733
    {
734
        return $this->layeredNavigationTestXpath;
735
    }
736
737
    public function getBaseUrl()
738
    {
739
        return $this->baseUrl;
740
    }
741
742
    /**
743
     * @return string
744
     */
745
    public function getLogoutSuccessXpath()
746
    {
747
        return$this->translatePlaceholders( $this->logoutSuccessXpath);
748
    }
749
750
    /**
751
     * @return array
752
     */
753
    public function getLogoutNavigationInstructions()
754
    {
755
        return $this->translatePlaceholders($this->logoutNavigationInstructions);
756
    }
757
758
759
    /**
760
     * @return string
761
     */
762
    public function getMyAccountTitle()
763
    {
764
        return $this->translatePlaceholders($this->myAccountTitle);
765
    }
766
767
    /**
768
     * @return string
769
     */
770
    public function getRegisterFirstNameXpath()
771
    {
772
        return $this->translatePlaceholders($this->registerFirstNameXpath);
773
    }
774
775
    /**
776
     * @return string
777
     */
778
    public function getRegisterLastNameXpath()
779
    {
780
        return $this->translatePlaceholders($this->registerLastNameXpath);
781
    }
782
783
    /**
784
     * @return string
785
     */
786
    public function getRegisterEmailXpath()
787
    {
788
        return$this->translatePlaceholders($this->registerEmailXpath);
789
    }
790
791
    /**
792
     * @return string
793
     */
794
    public function getRegisterPasswordXpath()
795
    {
796
        return $this->translatePlaceholders($this->registerPasswordXpath);
797
    }
798
799
    /**
800
     * @return string
801
     */
802
    public function getRegisterConfirmPasswordXpath()
803
    {
804
        return $this->translatePlaceholders($this->registerConfirmPasswordXpath);
805
    }
806
807
    /**
808
     * @return string
809
     */
810
    public function getRegisterNewsletterXpath()
811
    {
812
        return $this->translatePlaceholders($this->registerNewsletterXpath);
813
    }
814
815
    /**
816
     * @return string
817
     */
818
    public function getRegisterSubmitXpath()
819
    {
820
        return $this->translatePlaceholders($this->registerSubmitXpath);
821
    }
822
823
    /**
824
     * @return array
825
     */
826
    public function getRegistrationNavigationInstructions()
827
    {
828
        return $this->translatePlaceholders($this->registrationNavigationInstructions);
829
    }
830
831
    public function getCheckoutNavigationInstructions()
832
    {
833
        return $this->translatePlaceholders($this->checkoutNavigationInstructions);
834
    }
835
836
    public function getProductPageForCategory()
837
    {
838
        return $this->translatePlaceholders($this->categoryProductPageXpath);
839
    }
840
841
    public function getAddToCartSuccessXpath()
842
    {
843
        return $this->translatePlaceholders($this->addToCartSuccessXpath);
844
    }
845
846
    public function getNavigateToCustomerPageInstructions()
847
    {
848
        return $this->translatePlaceholders($this->navigateToCustomerPageInstructions);
849
    }
850
851
    public function getNavigationBaseXPathSelector()
852
    {
853
        return $this->translatePlaceholders($this->navigationBaseXPathSelector);
854
    }
855
856
    public function getNavigationChildXPathSelector($text)
857
    {
858
        $return = sprintf($this->navigationChildXPathSelector, $text);
859
        return $this->translatePlaceholders($return);
860
    }
861
862
    public function getNavigationPathToSimpleProductCategory()
863
    {
864
        return $this->translatePlaceholders($this->navigationPathToSimpleProductCategory);
865
    }
866
867
    public function getNavigationPathToConfigurableProductCategory()
868
    {
869
        return $this->translatePlaceholders($this->navigationPathToConfigurableProductCategory);
870
    }
871
872
    public function getCategoryAddToCartButtonXPathSelector()
873
    {
874
        return $this->translatePlaceholders($this->categoryAddToCartButtonXPathSelector);
875
    }
876
877
878
    public function getAddToCartXpath()
879
    {
880
        return $this->translatePlaceholders($this->addToCartXpath);
881
    }
882
883
884
885
}