RE: Interview Question

I have a textbox, button and a lable.

The requirement is, If I enter any text color (ex: green) and click the button. Then the lable shall fill the color with green.

Depending upon the color entering in the textbox, the lable shall fill with that respective color.

Can anybody let me know the Selenium WebDriver code in Java.

Add Comment
3 Answers

Dear Suhabe, Amit

Gr8 and Thanks for your response.

Without hard coding the color in the program can we achieve the above requirement?

Default Answered on July 24, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.