I have wordpress installed on my localhost server. I was automating some functionality using Selenium Webdriver.
The challenging thing to resolve was ‘tinymce’ (which is a text editor in wordpress) location in webdriver. Because I was able to use xpath expression for RC and IDE but the same code failed in WebDriver. I must have spent almost few hours to get the code working.
Thanks to ‘Google’ search engine and various channels available like Stackoverflow in which users handle various problems and various plug-ins like Firebug.
Web Driver is unable to recognize ‘tinymce’, so you have to switch to the frame in which your ‘tinymce’ text editor is available. Web Driver then recognizes and performs the instructions. But you can’t access other ‘ids’ because you are in the frame so you need to switch back so that Web Driver will recognize rest of the elements from the page.
Here is the snippet of the code for WebDriver:
Latest posts by Savita Munde (see all)
- How to apply for Software Testing Jobs? - December 21, 2016
- Web Forms without Usability is harmful - November 28, 2016
- 9 Good Reasons To Choose Career In Software Testing - November 14, 2016