Hi @Raghav , the tutorial is amazing , I am using automation for writing test cases , only one thing i need to know , "Will this take the screenshots also while performing the steps ?" If yes please let us know from where we can see those. Thanks Praveen
Hi Praveen, yes you can take screenshots. This will help - stackoverflow.com/questions/33236414/taking-screenshots-on-failure-using-robot-framework robotframework.org/robotframework/latest/libraries/Screenshot.html
Automation Step-by-Step - Raghav Pal I will be very much glad if you can teach us advanced concept to build framework using this Ride IDE. Please do very long video, we are happy to watch for hours together! ☺️
Thanks for your message Kishore. A lot of viewers have send me messages saying that they like short and crisp videos related to a single topic. I will do a mix of both in future.
Hi, I am following your tutorials for Robot Framework, a few things have changed, but I am having trouble identifying the elements from your OrangeHRM login. When I inspect the element, the username does not have an ID? It has a placeholder or 'name' but those do not appear to work, any pointers appreciated. Sorry, completely new to this, so no doubt this might be obvious to some. Thanks.
Chris If ID property is not available, you can use others like name, class etc or create an xpath opensource-demo.orangehrmlive.com/web/index.php/auth/login
@@RaghavPal Many thanks, I have "Assign ID to element" and then created a temp ID for that button. Would that be sufficient, or should I have just used xpath?
Hello Raghav Sir, I'm testing a website in robot framework with selenium library in Ubuntu. I have passed the test for login but after login there's a form to fill to add a certain user. Im not getting on how to fill that form? Need your assistance for this. I have seen your RUclips videos but couldn't find the solution.
Im getting an error called AttributeError: 'WebDriver' object has no attribute 'find_elements_by_id' Im using Python 3.7.13 Robot Framework 3.2.2 Could you please help with this?
Hi Mithesh The error you're encountering, 'WebDriver' object has no attribute 'find_elements_by_id', suggests that the find_elements_by_id method is not available in the WebDriver object you're using. In Robot Framework, the standard library SeleniumLibrary provides the Open Browser keyword, which initializes a browser instance and returns a WebDriver object. By default, this library uses the Selenium Python bindings. However, the error you're facing may indicate that you're trying to use the method find_elements_by_id directly on the WebDriver object instead of using it on the specific web element. To locate elements by ID using SeleniumLibrary in Robot Framework, you should first use the Find Element or Find Elements keyword to locate the desired element and then perform the desired action on that element. Here's an example: *** Settings *** Library SeleniumLibrary *** Test Cases *** Example Test Open Browser www.example.com chrome ${element} Find Element id=myElementId Log ${element.text} Close Browser In this example, Find Element is used to locate the element with the ID "myElementId" and store it in the ${element} variable. Then, the Log keyword is used to log the text of the element. Make sure you are using the correct syntax and following the appropriate steps when using the find_elements_by_id method in your test cases.
Thank you Raghav for posting these videos... can we have more video on using object repository ,Test data in robot Framework and handling unwanted web pop ups
Hi Raghav Great lesson to learn.i have one question. If I need to repeat the login with more than 1 set of user ID and pwd, then what needs to be done.I mean like following 1: login with a set of credentials 2: logout 3: Then again login with another set of credentials and so on. Another question,Is it possible to get the list of credentials from an external csv file like we did in Python shell?If yes then how? Please help,I am very new to robot framework
Hi Apratim, you can do data driven testing. This will help canadait.ca/data-driven-tests-with-robot-framework/ thinkpalm.com/blogs/data-driven-testing-robot-framework/ groups.google.com/forum/#!topic/robotframework-users/nTa0NwxgRoQ sqa.stackexchange.com/questions/30410/issue-with-data-driven-testing-in-robot-framework
Hi Nikitha, you will need to check and create a unique locator. You can recode to see the recorded locators. This will help - ruclips.net/video/KBI1NZAICK4/видео.html ruclips.net/video/W9_q7tZon2M/видео.html
Hi Mahendra, you can make the variable global and then refer it in the test case where needed. Check this - stackoverflow.com/questions/34880442/pass-variables-from-one-test-case-to-another-in-robot-framework-global-variable
Hey, I tried input password tag for tc, getting "ElementNotInteractableException: Message: element not interactable" could you please help, what might be the reason ?
Hi Sonali, most probably the element was not available in the DOM of the page by the time automation scripts initiated some action on it. You can add some wait before the step and try
Hi Raghav , i am new to Robot Framework and your videos are so helpfull so thanx! i tried to find example of how to "wait until element is visible" with xpath in terms of synthx. can you try to help me with it?
Hi Adam, the best way is 1. Goto robotframework.org/ 2. Goto Libraries 3. Goto the library you are using (e.g SeleniumLibrary) 4. Goto the keyword documentation (e.g. robotframework.org/SeleniumLibrary/SeleniumLibrary.html)
Hi Monali, pls check if you have set the following in the environment variable PATH C:\Python27\Lib\site-packages obot; C:\Python27; C:\Python27\bin; Let me know if this does not help
@@RaghavPal hello Sir, Thank you very much for the reply ..sorry I forgot to mention that I'm working in Ubuntu. Could you please reply me for the same?
Hello sir, I searched for this issue and found out that my Robot framework Version in Above 3.0. In which pybot is replaced with robot or Rebot. I think because of this I was getting that error.
Value of variable '@{CREDENTIALS}[0]' is not list or list-like. I followed you so meticulously but I got this ERROR for both list and dictionary. Do you have any solution for this Sir?
Hi Raghav, I am using the Click Button function but when i run the testcases it is failed on this step by saying that Button with locator 'id = btnSubmit' not found. could you please help me out? Thanks
Hi Umer, pls inspect the object (button) and see if you can use any other locator. You can also use katalon recorder (chrome plugin) to record your test and then export in robot framework and check. ruclips.net/video/KBI1NZAICK4/видео.html
Hi Raghav, I am getting error [ ERROR ] Error in file 'C:\path\TestSuite1.txt': Setting variable '&{LOGIN}' failed: Dictionary item '' does not contain '=' separator. I have followed the same steps you have followed, any idea what mistake i have done?
Hi Bro, How can I setup on "Text Editor" of RIDE display the text like your screen (time = 10:35) ? On my screen, the text on "Text Editor" is displayed very simple as "black text", nothing any format like your screen. Pls support me about this case. Thanks so much
Hi Duy, I did not use any text formatting, its due the library and python Just check the required libraries (Selenium) is installed and added properly. You can goto command line and check pip show selenium pip check selenium And also check if its added in Robot Framework
when I click on "Testcase" Settings Table, I am not able to get Keywords using Ctrl+Space,example "Open Browser" .I am not able to get.Please suggest me how to resolve
How do I use an extracted value of a variable from one execution to another execution in the same script? Some how, when I pass the variable to the second execution, the value does not seem to pass. It is empty. Please let me know if anyone knows how to do that.
There are 2 dropdown I want to select value from one dropdown and validate value from second dropdown since there are multiple value in both dropdown so I have to repeat it multiple times I'm trying to do it with single loop but it's not possible. Can you please tell me how can I achieve this?
Hi Md. Kumail, to get all elements from a dropdown check this - stackoverflow.com/questions/16768318/how-can-i-get-all-elements-from-drop-down-list You can do same for both dropdowns, so you have 2 lists. Now you can compare them
Hi, thank you for your videos. They are excelent! I have issue with keyword "Read excel column" Can you give me advice what argunents to use? thank You.
@@RaghavPal Thank You Raghav, in the meantime, I have solved issue with that. It something with library instalation, i think. Now, I am trying to make loop, which will read columne values, row by row, that is real challenge. 😊
On RIDE editor there are 2-3 test suites.Each test suite open same url after opening browser.I want to use global variable (base url )for those test suite on the top test suite for each.Could you please help me.
@@RaghavPal yes I was trying this website link and when I provided username as Admin and password as admin123 it's showing as invalid credentials. Please help
If the keywords are not being detected, take help from this forum.robotframework.org/t/cannot-see-all-the-keywords-in-ride-from-the-selenium-library/785
This is an excellent tutorial on variables! Really liking this series.
Happy to know this Brian
You are a good teacher, the content is easy to understand and clear. TY :)
Thanks for the message Nittaya
Wonderful but using editor is good for understanding purpose
Thank you for this series
You are most welcome Charushila
you are the best, thanks
You're welcome Niloufar
You're a good teacher thanks for sharing your knowledge, much appreciated
You're welcome
simply great man the way u explained and it makes us easy to understand
Glad to know this Krishna
Thanks for tutorial!
I'm waiting for the next part!
I would like to see how we can organize all automations procces with the Robot Framework
Hi , next part coming soon.
Hi @Raghav , the tutorial is amazing , I am using automation for writing test cases , only one thing i need to know , "Will this take the screenshots also while performing the steps ?" If yes please let us know from where we can see those.
Thanks
Praveen
Hi Praveen, yes you can take screenshots. This will help - stackoverflow.com/questions/33236414/taking-screenshots-on-failure-using-robot-framework
robotframework.org/robotframework/latest/libraries/Screenshot.html
@@RaghavPal -- Thanks :)
i love your tutorials, very precise. Would be good if you also show in the test edit the representation of a dictionnary
Thanks Mykola, will try to add more
Please upload a lengthy session. You teach amazing, I would refer all my friends to watch your videos.
I will do Kishore, thanks for watching
Automation Step-by-Step - Raghav Pal I will be very much glad if you can teach us advanced concept to build framework using this Ride IDE. Please do very long video, we are happy to watch for hours together! ☺️
Thanks for your message Kishore. A lot of viewers have send me messages saying that they like short and crisp videos related to a single topic. I will do a mix of both in future.
Automation Step-by-Step - Raghav Pal thank you for your quick response! ☺️
Thank you so much for this lesson ♥️
You're so welcome!
Hi, I am following your tutorials for Robot Framework, a few things have changed, but I am having trouble identifying the elements from your OrangeHRM login. When I inspect the element, the username does not have an ID? It has a placeholder or 'name' but those do not appear to work, any pointers appreciated. Sorry, completely new to this, so no doubt this might be obvious to some. Thanks.
Chris
If ID property is not available, you can use others like name, class etc or create an xpath
opensource-demo.orangehrmlive.com/web/index.php/auth/login
@@RaghavPal Many thanks, I have "Assign ID to element" and then created a temp ID for that button. Would that be sufficient, or should I have just used xpath?
yeah, if thats working, should be fine for the demo
@@RaghavPal It is working, but on another website, as I cannot seem to get it to work on yours. Many thanks.
Hello Raghav Sir,
I'm testing a website in robot framework with selenium library in Ubuntu.
I have passed the test for login but after login there's a form to fill to add a certain user.
Im not getting on how to fill that form?
Need your assistance for this.
I have seen your RUclips videos but couldn't find the solution.
Hi Monali, what exactly is the issue, do you have detailed logs. Can also try online help
amazing raghav. you are really great.
Thanks for your message Saurav, humbled.
Im getting an error called
AttributeError: 'WebDriver' object has no attribute 'find_elements_by_id'
Im using Python 3.7.13
Robot Framework 3.2.2
Could you please help with this?
Hi Mithesh
The error you're encountering, 'WebDriver' object has no attribute 'find_elements_by_id', suggests that the find_elements_by_id method is not available in the WebDriver object you're using.
In Robot Framework, the standard library SeleniumLibrary provides the Open Browser keyword, which initializes a browser instance and returns a WebDriver object. By default, this library uses the Selenium Python bindings.
However, the error you're facing may indicate that you're trying to use the method find_elements_by_id directly on the WebDriver object instead of using it on the specific web element.
To locate elements by ID using SeleniumLibrary in Robot Framework, you should first use the Find Element or Find Elements keyword to locate the desired element and then perform the desired action on that element.
Here's an example:
*** Settings ***
Library SeleniumLibrary
*** Test Cases ***
Example Test
Open Browser www.example.com chrome
${element} Find Element id=myElementId
Log ${element.text}
Close Browser
In this example, Find Element is used to locate the element with the ID "myElementId" and store it in the ${element} variable. Then, the Log keyword is used to log the text of the element.
Make sure you are using the correct syntax and following the appropriate steps when using the find_elements_by_id method in your test cases.
Thank you Raghav for posting these videos...
can we have more video on using object repository ,Test data in robot Framework and handling unwanted web pop ups
Hi Pravin, i will cover them in coming sessions.
Hi Raghav
Great lesson to learn.i have one question.
If I need to repeat the login with more than 1 set of user ID and pwd, then what needs to be done.I mean like following
1: login with a set of credentials
2: logout
3: Then again login with another set of credentials and so on.
Another question,Is it possible to get the list of credentials from an external csv file like we did in Python shell?If yes then how? Please help,I am very new to robot framework
Hi Apratim, you can do data driven testing. This will help
canadait.ca/data-driven-tests-with-robot-framework/
thinkpalm.com/blogs/data-driven-testing-robot-framework/
groups.google.com/forum/#!topic/robotframework-users/nTa0NwxgRoQ
sqa.stackexchange.com/questions/30410/issue-with-data-driven-testing-in-robot-framework
Excellent class!!
Thanks for watching Tapas
Thanks for video, waiting for the next video
Thanks for watching, coming soon.
hi Raghav,
I tried automate sigin in on linked in, but its not working.
The sigin button does not have an ID/ locator. Please check and help me
Hi Nikitha, you will need to check and create a unique locator. You can recode to see the recorded locators. This will help - ruclips.net/video/KBI1NZAICK4/видео.html
ruclips.net/video/W9_q7tZon2M/видео.html
Hi , I need to access a variable ${token} from one keyword to another keyword. Can give the suggestion how to access
Hi Mahendra, you can make the variable global and then refer it in the test case where needed. Check this - stackoverflow.com/questions/34880442/pass-variables-from-one-test-case-to-another-in-robot-framework-global-variable
Thank u Sir for the tutorial.Awesome explanation.Can you please do same tutorial in linux?
Yes, soon Anupama
So useful thanks!
You're welcome Jimmy
Hi Raghav, I am unable to access your demo app, it showing 'Invalid credentials' could you please help.
Hi Tanusri, can use any other app like katalon-demo-cura.herokuapp.com/
Thank you for sharing!
You're welcome
Thank you very much for your sharing
You're welcome Hoang
Hey, I tried input password tag for tc, getting "ElementNotInteractableException: Message: element not interactable"
could you please help, what might be the reason ?
Hi Sonali, most probably the element was not available in the DOM of the page by the time automation scripts initiated some action on it. You can add some wait before the step and try
Hi Raghav , i am new to Robot Framework and your videos are so helpfull so thanx! i tried to find example of how to "wait until element is visible" with xpath in terms of synthx. can you try to help me with it?
Hi Adam, the best way is
1. Goto robotframework.org/
2. Goto Libraries
3. Goto the library you are using (e.g SeleniumLibrary)
4. Goto the keyword documentation (e.g. robotframework.org/SeleniumLibrary/SeleniumLibrary.html)
I run pybot filename.txt command but it's showing command not found error. How to resolve it? Why this error is coming?
Hi Monali, pls check if you have set the following in the environment variable PATH
C:\Python27\Lib\site-packages
obot;
C:\Python27;
C:\Python27\bin;
Let me know if this does not help
@@RaghavPal hello Sir,
Thank you very much for the reply ..sorry I forgot to mention that I'm working in Ubuntu. Could you please reply me for the same?
Hello sir, I searched for this issue and found out that my Robot framework Version in Above 3.0. In which pybot is replaced with robot or Rebot. I think because of this I was getting that error.
Great, hope you can continue now
Value of variable '@{CREDENTIALS}[0]' is not list or list-like. I followed you so meticulously but I got this ERROR for both list and dictionary. Do you have any solution for this Sir?
Hi, not sure, if you did something differently, can also check about list and dictionary online
Hi Raghav,
I am using the Click Button function but when i run the testcases it is failed on this step by saying that Button with locator 'id = btnSubmit' not found. could you please help me out?
Thanks
Hi Umer, pls inspect the object (button) and see if you can use any other locator. You can also use katalon recorder (chrome plugin) to record your test and then export in robot framework and check. ruclips.net/video/KBI1NZAICK4/видео.html
Hi Raghav, thanks for all your efforts, can you make videos about HP UFT ? Also can you also show us how to creat a new keyword with python?.
Hi, thanks for your message, Not sure what name should I address you with. I will take up HP UFT in some time and keyword video too.
Automation Step by Step - Raghav Pal My name is zouina from Montréal
Thanks for the message Zouina.
Hi excellent tutorial, Is there a chance to give variables dynamic values?
You can, actually, you can use scripts for this
hi raghav could you publish some videos related to protocol testing test cases so that it will be useful to understand more .
I will try to do that Siddharth
Hi Raghav, I am getting error [ ERROR ] Error in file 'C:\path\TestSuite1.txt': Setting variable '&{LOGIN}' failed: Dictionary item '' does not contain '=' separator.
I have followed the same steps you have followed, any idea what mistake i have done?
Looks like some issue with your dictionary variables. If you remove it, does it work fine. May be you can try again
Hi Bro,
How can I setup on "Text Editor" of RIDE display the text like your screen (time = 10:35) ?
On my screen, the text on "Text Editor" is displayed very simple as "black text", nothing any format like your screen.
Pls support me about this case.
Thanks so much
Hi Duy,
I did not use any text formatting, its due the library and python
Just check the required libraries (Selenium) is installed and added properly.
You can goto command line and check
pip show selenium
pip check selenium
And also check if its added in Robot Framework
Hi,
"pip install pygments" in console and restart ride
when I click on "Testcase" Settings Table, I am not able to get Keywords using Ctrl+Space,example "Open Browser" .I am not able to get.Please suggest me how to resolve
Hi Sriram, try to restart RIDE
How do I use an extracted value of a variable from one execution to another execution in the same script? Some how, when I pass the variable to the second execution, the value does not seem to pass. It is empty. Please let me know if anyone knows how to do that.
Hi Khaled, you will need to store the value in a variable and then use it later, Pls try
There are 2 dropdown I want to select value from one dropdown and validate value from second dropdown since there are multiple value in both dropdown so I have to repeat it multiple times I'm trying to do it with single loop but it's not possible. Can you please tell me how can I achieve this?
Hi Md. Kumail, to get all elements from a dropdown check this - stackoverflow.com/questions/16768318/how-can-i-get-all-elements-from-drop-down-list
You can do same for both dropdowns, so you have 2 lists. Now you can compare them
hi, can you please provide some insights on automating SAP applications using RIDE.Much needed !
Hi Saumya, I will check on this, but can take some time.
Hi Raghav, I couldn't see the dictionary variable option when I do the right click on the suite. Please help.
It should be. Pls check if you missed any step. Also restart RIDE
I updated my RIDE to version 1.5.2.1. This resolved the issue. Thanks.
Hi, thank you for your videos. They are excelent!
I have issue with keyword "Read excel column"
Can you give me advice what argunents to use? thank You.
Hi Pedja, what library are you using for excel. What is the exact issue.
@@RaghavPal Thank You Raghav, in the meantime, I have solved issue with that. It something with library instalation, i think.
Now, I am trying to make loop, which will read columne values, row by row, that is real challenge. 😊
@@RaghavPal You want beleive, I made it with loop.
Thank You 😉
Glad to know this. All the best.
Plz share more examples for scalar list dix env
I will try to do more sessions on this Prachi
On RIDE editor there are 2-3 test suites.Each test suite open same url after opening browser.I want to use global variable (base url )for those test suite on the top test suite for each.Could you please help me.
Hi Sujit, you can set global variable and also set setup step for the test suites, watch the next sessions, should be able to get that.
Could you please guide us how to do data driven testing in robot framework
I will try to do a session soon on this
Your demo app is not working , it showing invalid credentials. Could you please help.
Can check this - opensource-demo.orangehrmlive.com/
@@RaghavPal yes I was trying this website link and when I provided username as Admin and password as admin123 it's showing as invalid credentials. Please help
@@RaghavPal I will check again and let you know.
it doesn't work for me either! is it my problem?
@@poa193 last time I checked it worked for me.
Hi i cant able to open ride
Please publish next video am eagerly waiting..
Will do it soon Venkatesh
FAIL : Value of variable '@{CREDENTIALS}[0]' is not list or list-like.
HI Karthick, pls check the format syntax again
If the keywords are not being detected, take help from this
forum.robotframework.org/t/cannot-see-all-the-keywords-in-ride-from-the-selenium-library/785
Thanks Soumya
7:30
Let me know the question
@@RaghavPal it's was just a time stamp, it tells me from where to resume the video. BTW nice video👍🏻
Hi Raghav, I can not open OrangeHRM the page will show "Page not found". Can you help me? Thank you
Hi Geraldine, Pls try opensource-demo.orangehrmlive.com/