I am creating a frame work for my AUT. I plan to use Webdriver/Java. I am relatively new to Selenium, Java and html programming. I want to implement the framework in following manner.
My questions are:
a) executeScript This method executes JavaScript in the context of the currently selected window or frame in Selenium.
We can run Javascript in Selenium webdriver with Python. The Document Object Model communicates with the elements on the page with the help of Javascript. Selenium executes the Javascript commands by taking the help of the execute_script method. The commands to be executed are passed as arguments to the method.
You an use selenium to do automated testing of web apps or websites, or just automate the web browser. It can automate both the desktop browser and the mobile browser. Selenium webdriver can execute Javascript. After loading a page, you can execute any javascript you want.
Have you looked at Selinium IDE? It's a basic front end for Selinium. You can record and playback test cases and you are able to select which test case to run from a test suite.
Since recently this could be used to run tests in browsers other than just firefox using Selenium IDE.
PS You should also look into Huxley-Selenium for regression testing. We found the node version is much easier to install.
Hope this helps. Good luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With