Комментарии:
Great video as always Raghav, however I had a question, how do you test multiple UI (like buttons and creation of forms) in the site itself without logging out? do I have to write new tests scripts in which I have to login once again everytime? or is there a better way?
ОтветитьHi @Raghave,
Another thing- sometimes when i work in the page that time auto-suggestion doesn't come
how can I fix the auto-suggestion issue when I work in a new page? Like driver. (after dot nothing come for suggest me)
Hi @Raghave, hope you are doing well.
I'm facing a problem when I pass the argument driver -
login = LoginPage(driver)
issue found like -
TypeError: LoginPage() takes no arguments
Can you help me, please?
Hi Raghav , thanks for sharing . In my opinion I would prefer : visibility_of_element_located rather than presence_of_element_located coz I first wait for the visibility of the object and then yes I interact with that element.
ОтветитьWonderful tutorial! Btw I got this problem. Everything ran just fine in PyCharm but when I tried to run the test in cmd, I got ModuleNotFoundError and it indicated that when importing HomePage, it can't find module "SampleProject" (from what I have imported: from SampleProject.POM.Pages.home_page import HomePage). I hope you see my comment and maybe give me some recommendations. Many thanks Raghav !
ОтветитьThis video is very very helpful for me I learned from here about POM and how to define class in main file , Thank you
ОтветитьAmazing quality, eventhough is old version of selenium if you know how to set up new on this will give you a complete Idea how to work with each topic, If you a have some projects we can practice this topic please let me know.
ОтветитьRaghav, how to do same unit test set up in VSCODE IDE ?
Ответитьecture well.
For example, is it down?
i can somehow call out method from another file but the code isn't running saying that it doesn't find the module despite the fact that I've changed directory of module package either by import sys ... edit enviroment in windowds or run launch.json and settings.json. I'm kinda hopeless at this point. I rly want to finish this project but i cannot go past this problem in VS code.
ОтветитьI exactly followed this for my project but while login test am getting attribute error, it is not allowing me to have a 'driver' as an attribute. Can someone help me.
ОтветитьGreat tutorial. Completely understood. The only thing is that ,for me in loginpage, homepage class if i do self.driver. ,then no option for find elements was showing, i have done it manually and its working fine. This is strange.
ОтветитьI was baffled about POM, But you make it so easy Thank you so much ...
ОтветитьHi Raghav, i tried to generate html report, but after running on mac os, this report can't generate?
testRunner=HtmlTestRunner.HTMLTestRunner(output='/Users/fawzi/PycharmProjects/pythonProject1/reports', report_name="Login Report", report_title="Login Report", add_timestamp=True))
this is correct?
Yes Sir, it is really helpful.
Thank you very much 😊
Do you have an example of how get the size of Table and dynamically create a path.
ОтветитьGood presentation very good luck
Ответить