Black Friday Special Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

Question # 4

Your web application uses a framework that creates dialogs using templates such that "OK" and "Cancel" buttons are reused by multiple dialogs The dialogs are complicated, with many buttons and other elements. You are allowed to make changes to the source code to help in testing

Which of the following is the BEST approach for locating the Cancel button in one specific dialog?

A.

Add a unique class name to the button and locate it within a loaded dialog

B.

Add a unique ID to the button and locate it within a loaded dialog

C.

Use the absolute XPath for the button for the loaded dialog

D.

Use the link text for the button to locate it within a loaded dialog

Full Access
Question # 5

If you need to test the content within a specific frame in a web page, which one of the following is the BEST approach for gaining access to the frame?

A.

Get handles for the open frames and switch to the frame with that handle

B.

Execute JavaScript window_open code to open the desired frame

C.

Create a WebDriver object for the frame and use the gotframeQ method using the object

D.

Use the swltch_to class to switch to the desired frame

Full Access
Question # 6

Which of the following states for a link WebElement could be checked to ensure that trying to click on the WebElement does not fail?

Choose three of the seven answers

A.

The WebElement is selected

B.

The WebElement exists

C.

The WebElement is not selected

D.

The WebElement is displayed

E.

The WebElement is at a particular X,Y location

F.

The WebElement is enabled

G.

The WebElement has a text value

Full Access