Who said that Python is not friendly with Front-end?
ITArray released the 1st version of Automotion-Python framework that can be used for visual validation of the web and mobile application.
You can find it by link https://github.com/ITArray/Automotion-Python
If You want to connect the library to Your project with “Tox” – simply add this dependency to Your tox.ini file:
http://github.com/ITArray/Automotion-Python/tarball/master#egg=Automotion
It’s super simply in usage:
from automotion import responsive_ui_validator
ui_validator = responsive_ui_validator.ResponsiveUIValidator(self.driver)
result = ui_validator.init("Open navigation drawer scenario").find_element(self.driver.find_element_by_name("Name"), "Name")\ .same_size_as(self.driver.find_element_by_id("Id"), "Search Icon")\ .same_offset_bottom_as(self.driver.find_element_by_id("Id"), "Search Icon")\ .same_offset_top_as(self.driver.find_element_by_id("Id"), "Search Icon")\ .not_overlap_with(self.driver.find_element_by_id("Id"), "Search Icon")\ .inside_of(self.driver.find_element_by_id("Id"), "Toolbar")\ .width_between(100, 200)\ .height_between(100, 200)\ .draw_map()\ .validate() ui_validator.generate_report("ReportToolbarIcons")
Leave Your feedback and comments. Also join and contribute into Automotion if You have ideas.
Thanks for reading my blog!
Hi,
Saw this tool. I am very much interested in using this tool.
But since this is a python framework, “Can it be extended to use in Automation framework which is Developed in SELENIUM WEBDRIVER, JAVA, testNG”?
If yes can you please tell me how to accomplish this.
Thanks & Regards…
Shashi
Hello Shashi,
Yes, of course, You can use the same for Java with Test NG. There is Automotion Java
https://github.com/ITArray/Automotion-Java
So, the main idea was an integration into existing Selenium WebDriver framework based on Junit, TestNG, Cucumber, etc.
It works perfectly.
Thank You!
Denys
Hi Denys,
Thank you very much for your response.
Can this be integrated without maven, i mean just by including the jar files?
Hello Shashi,
Yes, easy. Just download the jar from Maven repo http://mvnrepository.com/artifact/net.itarray/automotion/1.4.5
And You can put this jar into Your project.
Oh! Wow… Thank you very much, Denys.
I hope to accomplish what I want to do…
If you need any helping hand I am willing to be a part of this…
Thanks & Regards…
Shashi
I’m sure You can handle everything You need. You can use Automotion for Web and Mobile automation testing.
And of course, don’t hesitate to contribute on GitHub if You would like to add some improvements.
Thank You!