11<?php
2+ // Copyright 2004-present Facebook. All Rights Reserved.
3+ //
4+ // Licensed under the Apache License, Version 2.0 (the "License");
5+ // you may not use this file except in compliance with the License.
6+ // You may obtain a copy of the License at
7+ //
8+ // http://www.apache.org/licenses/LICENSE-2.0
9+ //
10+ // Unless required by applicable law or agreed to in writing, software
11+ // distributed under the License is distributed on an "AS IS" BASIS,
12+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ // See the License for the specific language governing permissions and
14+ // limitations under the License.
215
316class EventFiringWebElement {
417
@@ -63,7 +76,7 @@ private function newElement(WebDriverElement $element) {
6376 /**
6477 * @param $value
6578 * @return $this
66- * @throws Exception| WebDriverException
79+ * @throws WebDriverException
6780 */
6881 public function sendKeys ($ value ) {
6982
@@ -83,7 +96,7 @@ public function sendKeys($value) {
8396
8497 /**
8598 * @return $this
86- * @throws Exception| WebDriverException
99+ * @throws WebDriverException
87100 */
88101 public function click () {
89102
@@ -104,7 +117,7 @@ public function click() {
104117 /**
105118 * @param WebDriverBy $by
106119 * @return EventFiringWebElement
107- * @throws Exception| WebDriverException
120+ * @throws WebDriverException
108121 */
109122 public function findElement (WebDriverBy $ by ) {
110123
@@ -125,7 +138,7 @@ public function findElement(WebDriverBy $by) {
125138 /**
126139 * @param WebDriverBy $by
127140 * @return array
128- * @throws Exception| WebDriverException
141+ * @throws WebDriverException
129142 */
130143 public function findElements (WebDriverBy $ by ) {
131144
@@ -151,7 +164,7 @@ public function findElements(WebDriverBy $by) {
151164
152165 /**
153166 * @return $this
154- * @throws Exception| WebDriverException
167+ * @throws WebDriverException
155168 */
156169 public function clear () {
157170 try {
@@ -168,7 +181,7 @@ public function clear() {
168181 /**
169182 * @param $attribute_name
170183 * @return string
171- * @throws Exception| WebDriverException
184+ * @throws WebDriverException
172185 */
173186 public function getAttribute ($ attribute_name ) {
174187 try {
@@ -184,7 +197,7 @@ public function getAttribute($attribute_name) {
184197 /**
185198 * @param $css_property_name
186199 * @return string
187- * @throws Exception| WebDriverException
200+ * @throws WebDriverException
188201 */
189202 public function getCSSValue ($ css_property_name ) {
190203 try {
@@ -199,7 +212,7 @@ public function getCSSValue($css_property_name) {
199212
200213 /**
201214 * @return WebDriverLocation
202- * @throws Exception| WebDriverException
215+ * @throws WebDriverException
203216 */
204217 public function getLocation () {
205218 try {
@@ -229,7 +242,7 @@ public function getLocationOnScreenOnceScrolledIntoView() {
229242
230243 /**
231244 * @return WebDriverDimension
232- * @throws Exception| WebDriverException
245+ * @throws WebDriverException
233246 */
234247 public function getSize () {
235248 try {
@@ -244,7 +257,7 @@ public function getSize() {
244257
245258 /**
246259 * @return string
247- * @throws Exception| WebDriverException
260+ * @throws WebDriverException
248261 */
249262 public function getTagName () {
250263 try {
@@ -259,7 +272,7 @@ public function getTagName() {
259272
260273 /**
261274 * @return string
262- * @throws Exception| WebDriverException
275+ * @throws WebDriverException
263276 */
264277 public function getText () {
265278 try {
@@ -274,7 +287,7 @@ public function getText() {
274287
275288 /**
276289 * @return bool
277- * @throws Exception| WebDriverException
290+ * @throws WebDriverException
278291 */
279292 public function isDisplayed () {
280293 try {
@@ -289,7 +302,7 @@ public function isDisplayed() {
289302
290303 /**
291304 * @return bool
292- * @throws Exception| WebDriverException
305+ * @throws WebDriverException
293306 */
294307 public function isEnabled () {
295308 try {
@@ -304,7 +317,7 @@ public function isEnabled() {
304317
305318 /**
306319 * @return bool
307- * @throws Exception| WebDriverException
320+ * @throws WebDriverException
308321 */
309322 public function isSelected () {
310323 try {
@@ -319,7 +332,7 @@ public function isSelected() {
319332
320333 /**
321334 * @return $this
322- * @throws Exception| WebDriverException
335+ * @throws WebDriverException
323336 */
324337 public function submit () {
325338 try {
@@ -335,7 +348,7 @@ public function submit() {
335348
336349 /**
337350 * @return string
338- * @throws Exception| WebDriverException
351+ * @throws WebDriverException
339352 */
340353 public function getID () {
341354 try {
0 commit comments