Skip to content

Commit 0d7880b

Browse files
author
Neubert, Sebastian
committed
remove public function "wantToUseJQuery. change hideElement function to private"
1 parent ae9af17 commit 0d7880b

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

module/VisualCeption.php

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,22 +99,12 @@ public function dontSeeVisualChanges ($identifier, $elementID = null, $excludeEl
9999
}
100100
}
101101

102-
/**
103-
* Inject jQuery.js to the actual site
104-
*/
105-
public function wantToUseJQuery()
106-
{
107-
$jQueryString = file_get_contents(__DIR__ . "/jquery.js");
108-
$this->webDriver->executeScript($jQueryString);
109-
$this->webDriver->executeScript('jQuery.noConflict();');
110-
}
111-
112102
/**
113103
* Hide an element to set the visibility to hidden
114104
*
115105
* @param $elementSelector String of jQuery Element selector, set visibility to hidden
116106
*/
117-
public function hideElement($elementSelector)
107+
private function hideElement($elementSelector)
118108
{
119109
$this->webDriver->executeScript('
120110
if( jQuery("'.$elementSelector.'").length > 0 ) {
@@ -129,7 +119,7 @@ public function hideElement($elementSelector)
129119
*
130120
* @param $elementSelector String of jQuery Element selector, set visibility to visible
131121
*/
132-
public function showElement($elementSelector)
122+
private function showElement($elementSelector)
133123
{
134124
$this->webDriver->executeScript('
135125
if( jQuery("'.$elementSelector.'").length > 0 ) {

0 commit comments

Comments
 (0)