Answer Posted / grbhniti@yahoo.co.in
Hi,
By using javascriptexecutor we can perform tasks as below
I am entering text in textbox by passing ID.
JavascriptExecutor js= (JavascriptExecutor)driver;
js.executeScript("document.getElementById('vfb-9').value='Ramchandra Patil'");
Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What are the types of waits available in selenium webdriver?
How do I upload a file using selenium? I need to upload a word file during test execution.
How can we handle pop-ups in rc?
Explain in selenium ide how can you debug the tests?
Mention different exceptions you had in selenium web driver?
How to handle browser (chrome) notifications in selenium?
What are soft assert and hard assert in selenium?
For database testing in selenium webdriver what api is required?
Explain how you will login into any site if it is showing any authentication popup for username and password?
How to assert text of webpage using selenium 2.0?
what are challenges you faced in your last project?
How to delete browser cookies with selenium web driver?
What are the different types of locators in Selenium?
What are some of the different ways to find an element using selenium as a tool?
What is the use of context menu in selenium ide?