I have seen many java programming and selenium videos, I never understood any concepts even after watching multiple times... But by gods grace my husband found this and told me to watch, and you know what bro, I just fell in love with programming... Thank you soooooo much for explaining so well.... Every concepts and every video is awesome 😄😄😄😄👏👏👏👏 I have 4yrs exp in manual and wanted to move to automation and here im.... Once again thank you so much and may God bless you and lift higher bro🥰 pls make fresh videos on complete java course.... Thank you bro😄👏
Your videos understandable and easy to learn. Initially i was worried about java coding but now i find it easy. Brother can u put all these small hints or important questions asked during interviews in one single video. which will be more useful
Hi Professor, earlier i was thinking that learning programming languages are such a big task but after seen your way of teaching in videos I'm really very much interested to learn and came to know that programming languages are not big one. Thanks a lot for your dedicated service without expecting anything from your viewers. Its a great thing and really it would be appreciated. Once again thank you so much professor. And i have one doubt in this tutorial - here you have used "size" to get no of elements are there in drop down. But in earlier tutorial you had used "getsize" to bring their size of text button. So can you please help me out for this different.
Hello Sir, I'm Dinesh Kumar. Recently I got a job as automation tester. In My 1st task I'm facing some challenge on drop-down with dynamic table(Using Prime Face libraries). I'm unable to use Select class for handle this drop-down.Can u please help me for this case. looking forward for your response
Hi @LearnAutomationOnilne Plz guide me how to find all options in drop-down and I would like to verify that particular option is available in drop-down or not by passing text.
Hi Brother. I could able to easily understand your concept.But one small doubt. Please say me what we will the output for list of options in print output
When I add List it show error like" the type is not generic ,it cannot be parameterized with argument".pls help me to resolve th problem.i like your way of teaching.
I think you have imported wrong list. The import statement should be import java.util.List . If you have used some other list in the import statements. Like java.awt also is having a class called list. Remove that one and use util.list.
Hi Arul, Your video's are very clear to understand. I have tried dropdown "Get the Number of options" but it is showing error "Exception in thread "main" org.openqa.selenium.support.ui.UnexpectedTagNameException: Element should have been "select" but was "option", and also try to sendkeys " dropdown1.sendKeys("Cucumber");". Unable to point out the dropdown field. can u please clarify the issues.
H Bro, Firstly your explanation is very good. Thank you for the clarity. i have one doubt on this. for multiple option select in the dropdown insterd of puting one by one, can we use for loop like this ? kindly reply it ASAP please. WebElement MultiSelect = driver.FindElement(Bu.XPath(“Path of the copied inspect elements”)); Select MultiSelectBox = new Select(MultiSelect); System.out.println(“MultiSelectBox.Size()”); For(i=1;i
If you haven't subscribed and enabled notifications , pls do. I have already updated a practice website. Refer community posts. It will be difficult for me to repeat the same things over and again.
interview qtns pdf ha iruka bro iruntha send panunga live classes or teams class conduct panra idea iruntha slunga join panikren real project mari build panra mari maven testng lam vaichu selenium la web based ui automation panra mari
No plans for live classes. No PDFs for interview question. But if u refer the Playlist tab, creating real projects, interview questions, maven. Everything is there.
Sir oru doubt.. future reference kaga dhana variable create panni store pandrom.. adhu create pannama like last video indha drop-down box test panna mudiuma??🙄🙄
HI Arul...How to select multiple dropdown options with" findElements" instead of "findElement"?? And how to select option in dropdown using keyboard UpDown Arrow keys? Whats the code for that?
Findelements can be used only if there are more than one web element. For example getting the list of images, links in a particular page. If you want to use key press event, use robot class. Pls refer to file upload video, have explained key press nd key release event
In your previous video (working with buttons) you have used Point class, and no objects are created for that with a new keyword. But in this video, you have created an object for select class. why? and how to differentiate btw these?
These are the basics of selenium. If you are going to select from a drop down, we have to create object for select class. That's mandatory. Point class will either be an interface or an abstract class. For interface or an abstract class, we can't create objects. Point class acted as a data type to store the points. When you watch the java playlist, you will understand this. For now, just remember, if there is a drop down with select in the html tag, you have to use select class.
@@LearnAutomationOnline Thanks for your quick reply. It's Okay then, I don't wanna skip or jump to it right now. Let me continue to watch these videos in sequential. Hope my doubts will be cleared once I complete the Java videos.
helo sir..having one doubt..i want to print the selected options as well as unselected options is there any way to print unselected options in a list of options
Last multiselectbox is not working even though there is no logic mistake kindly help me, is there any other way to select all elements together? Thanks in advance
Hi Arul, First and foremost million thanks for all your effort. The leafground.com is not available now and for the sake of handson i used seleniumeasy.com site. But somehow the functionality that you taught in this video was not working properly. I checked using various method but no luck. Kindly review and let me know if am making any mistake. //Code starts here package seleniumDemo; import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.support.ui.Select; public class DemoDropDown { public static void main(String[] args) throws InterruptedException { // TODO Auto-generated method stub //load the webdriver System.setProperty("webdriver.chrome.driver", "C:\\Users\\vaithse\\Desktop\\SETHU\\Selenium\\libs\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); //Load the Webpage driver.get("www.seleniumeasy.com/test/basic-select-dropdown-demo.html"); //Load the drop down select class WebElement ddSelect = driver.findElement(By.id("select-demo")); Select dpdwnSelect = new Select(ddSelect); //Select the desired value using "selectByValue" attribute dpdwnSelect.selectByValue("Wednesday"); //Select the desired value using "sendkeys" attribute ddSelect.sendKeys("Monday"); //Select the desired value using "selectByVisibleText" attribute dpdwnSelect.selectByVisibleText("Friday");
//Retrieve the number of options in the drop down List listoptions = dpdwnSelect.getOptions(); int totalddoptions = listoptions.size(); System.out.println("Total no of drop down options: "+totalddoptions);
//MultiSelect from listbox WebElement multiselect = driver.findElement(By.xpath("//*[@id=\'multi-select\']")); Select multiselectbox = new Select(multiselect); multiselectbox.selectByValue("California"); //Thread.sleep(3000); multiselectbox.selectByValue("Florida"); //Thread.sleep(3000); multiselectbox.selectByValue("New Jersey"); //Thread.sleep(3000);
//Click FirstSelected button to retreive the 1st selection made driver.findElement(By.xpath("//*[@id=\'printAll\']")).click(); /*above line should return all those which are selected. But it returns just the last selection. When tried doing manually from the site it is working perfectly.*/ } } //Code ends here Once again thank you so much!!
Hello Anna, I couldn't click(select) from the dropdown. I got this error: TypeError: 'NoneType' object is not callable. Please help me to find this error and I am doing with python selenium. Thanks
I have a doubt. how to select a sub-drop down option which is dependant on a drop-down options and that sub-drop down option is enabled only after the first drop down index value is selected
You have to interact with the first drop down. For example, lets say there is a country drop down, if you select that, you will have another drop down with the states. So if you perform the first option, then the second one will be available and you can select the states from it.
3 in line 25 is not inside double codes. Whereas 2 & selenium in lines 26 & 27 respectively r inside double codes. May I know the reason. When to choose double coeds & when not to.
If we select by index method number. Integer will not be inside double quotes. Whereas, string will be inside double quotes. Select by visible text and select by value requires string value.
Hi sir, since the exception is thrown by main method and jvm will terminate the program seeing thread.sleep .How is the program working completely normal here? Can you please tell me
If you put the sleep after the line which will throw exception, u will get exception and not a normal execution. If u put it before, the process will be suspended for given time, and by the time it resumes, the elements will be available and there is no place for exception
Hi bro..Am a complete beginner of testing. So that I have this doubt. Can u tell the realtime of testing. Means here we did only send keys, append, click, etc... 1. How to test the web application using these operations? 2. Can weable to change the values of html codings? I Don't understand this. Pls clear my doubt.
A testers job is to test only the functionality of the web applications. Not modifying html codes. If u are a tester at Facebook, u will check if u can login, make a post, edit post, delete post etc. How will u do this? Manually, u will know where to enter the username, password and so on.. but when using automation, u have to instruct the code, on where to do and what to do...
@@LearnAutomationOnline which means in our code we need to enter / modify/ do the operations to check the functionality. Suppose user typed unwanted / missed some texts or for eg in email box, if user typed without @, then alert box should display. Like that we need to code. Isn't it? Apart from functionality what test?
@@HITMASS777 for instance if the user is not entering a valid data for an input field, then the user should see an error or warning message. this comes under client side validation. Meaning, on the browser itself the dev team will do these validations instead of taking it to the server. The tester has no part in it. Having said that, the tester has to check if he or she is seeing the error message for invalid data. It's not a tester's job to write business logic and behavior of the application.
Dear Sir, In the "List" i am getting red underline when i move the cursor onr, but i am getting only "Remove type Arguments".( No other options) And I am not getting more options like yours when you move the cursor on List.Please help me how to fix that..I am not getting more option Java.util. please advise me how to get that..
Sir, I have changed "WebElement". I am talking only about "List" which comes with underline of red color. when I hover the mouse on the "List". I am not getting many option to choose like Java.util. its not showing anything in the popup window.
Most of the times, if there are any misspellings on a line, may not be directly indicated. In you case, if you are not getting the automatic suggestions, try to remove the line again. First try to give list alone. Just type list and give control space key. It will show you the suggestion. Or else, you can manually provide the import statements. Java util list on the import segment. That error will go.
This was the code i used for multiselect. programme is running but not selecting the variables WebElement sixthdropdown=driver.findElement(By.xpath("/html/body/div/div/div[3]/section/div[6]/select/option[1]")); Select multiSelectBox=new Select(sixthdropdown); multiSelectBox.selectByIndex(1); multiSelectBox.selectByIndex(2); multiSelectBox.selectByIndex(3);
In line 37 when i copied the xpath i get //*[@id="contentblock"]/section/div[6]/select/option[1] & due to this i get error. In ur video the xpath is //*[@id="contentblock"]/section/div[6]/select. So i removed the extra /option[1] and there was no error. I copied the xpath twice & always i get //*[@id="contentblock"]/section/div[6]/select/option[1] . Not sure why i get the extra /option[1]. Can u help me with this?
You are selecting the drop down first and inspecting from 1st option. That's why the first option is getting added. In drop down, we will have to first identify the whole drop-down instead of selecting the first element.
No difference. Ita all different options available for us. A bike has kicker, and self start as well. Ays of doing is different but the purpose is to start the vehicle. Same way.
@@LearnAutomationOnline ok sir... Great... Thanks for your reply... I'm getting an error while using sendKeys() fn..not able to send string values through it.. The error is... The method sendKeys(CharSequence[]) of the type WebElement cannot be used with argumets(String).
A testers job is to test only the functionality of the web applications. Not modifying html codes. If u are a tester at Facebook, u will check if u can login, make a post, edit post, delete post etc. How will u do this? Manually, u will know where to enter the username, password and so on.. but when using automation, u have to instruct the code, on where to do and what to do...
@@LearnAutomationOnline Thanks bro . Could you please put a video about explaining the LIST collection and WEB ELEMENT ? I Only know Web element is an interface but when trying to understand the line " WebElement element = driver.findElement" i am not able to make myself clear . It would be good if you explain about Webelement interface
For list and other collection types refer to my java crash course playlist. There's nothing much to explain web element interface. Just think of it as a data type in case of confusion. Integer value will be stored in integer data type. Same way, element that we find on. the web stored on webelement.
You can use find elements function and iterate through the values. Reference: stackoverflow.com/questions/36848352/how-to-select-value-from-dropdown-without-using-select-class-becuase-in-have-dr
There are no select all options in selenium. However, we can use get options method to fetch the drop down values, and iterate through them to get the values.
Bro i saw your video and try one sample program with both text box and dropdown box combination after execute the program it will run upto the text box only there is no movement in dropdown list box and my program is correct i cant able to identify the error could you please guide me Send me your mail id i will send The Screenshot so that u will able to identify the mistake
@@LearnAutomationOnline actually nan training institute la um course eduthuruken bro .... Software testing ,java , html css js angular .....nan testing la tha join pana keten but combo nu development tu kum kututhaga join panniten but romba confuse aiten testing olunga concentration panna mutilaa .... Epo thaa development venam nu decide pannitu .... thirumba unga videos pathu learn pannitu eruken broo automation ..... thankyou bro romba useful laa eruku learn pannirlam nu confident eruku unga video pathathum.....
@@LearnAutomationOnline bro neenga solratha follow panna lai pothum laa interview questions ku..... interview crack panirlam la broo .... I have one more doubt testing laa communication English entha level laa theva padum broo .... Basic ka tha therium enaku athn kekuren..... technical skill la vachi move panlam nu nenaikuren broo .... Ethathu suggestions soluga broo
Hi, anybody can help me how to solve this: am writing this below mentioned select class WebElement element = driver.findElement(By.xpath("//span[@id='month']//span[@class='next-select-inner']")); Select select = new Select(element); the "Select" is change like this : "org.openqa.selenium.support.ui.Select select = new org.openqa.selenium.support.ui.Select(element);" how to slove this.
I have seen many java programming and selenium videos, I never understood any concepts even after watching multiple times... But by gods grace my husband found this and told me to watch, and you know what bro, I just fell in love with programming... Thank you soooooo much for explaining so well.... Every concepts and every video is awesome 😄😄😄😄👏👏👏👏 I have 4yrs exp in manual and wanted to move to automation and here im.... Once again thank you so much and may God bless you and lift higher bro🥰 pls make fresh videos on complete java course.... Thank you bro😄👏
Your videos understandable and easy to learn. Initially i was worried about java coding but now i find it easy. Brother can u put all these small hints or important questions asked during interviews in one single video. which will be more useful
Thanks u sir.. ur way of speaking is really good...it's giving me a intrest to study more thanks a lot sir
Brother amazing ...clear ah puriyuthu brother...keep doing 😊❤️
Hi Professor, earlier i was thinking that learning programming languages are such a big task but after seen your way of teaching in videos I'm really very much interested to learn and came to know that programming languages are not big one. Thanks a lot for your dedicated service without expecting anything from your viewers. Its a great thing and really it would be appreciated. Once again thank you so much professor.
And i have one doubt in this tutorial - here you have used "size" to get no of elements are there in drop down. But in earlier tutorial you had used "getsize" to bring their size of text button. So can you please help me out for this different.
size is a function to calculate the elements in the list. getSize is a selenium function to find the height and width of a given element.
@@LearnAutomationOnline thanks a lot for your prompt reply Professor.
Hello Sir, I'm Dinesh Kumar. Recently I got a job as automation tester. In My 1st task I'm facing some challenge on drop-down with dynamic table(Using Prime Face libraries). I'm unable to use Select class for handle this drop-down.Can u please help me for this case. looking forward for your response
You are explaining very well.. good to go..
Thanks a lot Umadevi. Keep learning. 😊
Hi @LearnAutomationOnilne
Plz guide me how to find all options in drop-down and I would like to verify that particular option is available in drop-down or not by passing text.
Hi Brother. I could able to easily understand your concept.But one small doubt. Please say me what we will the output for list of options in print output
Very useful video excellent explanation thank you so much sir.
Super a solli tharinka.. Thanks a lot
What font style u r using brother.. Its really nice.can u tell me the name.
anna vera method iruku nu sonniga la atha vachu oru video poduga
Super bro, Crystal clear :)
When I add List it show error like" the type is not generic ,it cannot be parameterized with argument".pls help me to resolve th problem.i like your way of teaching.
Are you using the W as caps for the webelement Or is the same way as you have mentioned in this comment?
I used caps w only.even through it throws errors.where I did mistake.pls help
For list which file to import?
I think you have imported wrong list. The import statement should be import java.util.List . If you have used some other list in the import statements. Like java.awt also is having a class called list. Remove that one and use util.list.
I have already replied to your other comment. List should be from java.util
super bro. keep rocking.
Nice bro...u r doing great...keep going...
Hi Arul, Your video's are very clear to understand. I have tried dropdown "Get the Number of options" but it is showing error "Exception in thread "main" org.openqa.selenium.support.ui.UnexpectedTagNameException: Element should have been "select" but was "option", and also try to sendkeys " dropdown1.sendKeys("Cucumber");". Unable to point out the dropdown field. can u please clarify the issues.
That means u haven’t given the correct locator for select web element. Instead of providing the select you gave one of the options tag.
H Bro, Firstly your explanation is very good. Thank you for the clarity. i have one doubt on this. for multiple option select in the dropdown insterd of puting one by one, can we use for loop like this ? kindly reply it ASAP please.
WebElement MultiSelect = driver.FindElement(Bu.XPath(“Path of the copied inspect elements”));
Select MultiSelectBox = new Select(MultiSelect);
System.out.println(“MultiSelectBox.Size()”);
For(i=1;i
Yes you can. But it depends. Sometimes you may get stale element exception. Based on how the UI is designed
@@LearnAutomationOnline Okay, Thank you for the Reply !
Hi Arul! how to automate dropdown without Select class
Hi. A interviewer asked me how to handle dynamic drop-down,how to explain bro?
Can u pls provide the test leaf url to practice
Hi sir, Please do a video for drag and drop.
Please watch the selenium advanced playlist. It's already there
Bro multiple select ku for loop use panni pannikalam la
Hi sir, selenium advance playlist irukum ma...
bro 1st dropdownbox matum dha selenium select...!!! aguthu 2nd 3rd laaam????
Your really awesome 👏🏻 thank you so much
Please give some other website for the practice because leaf ground is not working
If you haven't subscribed and enabled notifications , pls do. I have already updated a practice website. Refer community posts. It will be difficult for me to repeat the same things over and again.
hi can u tell me the method for scroll the window down ..
Hi how to select before the last element in dynamic changing dropdown share a link thanku
Sir what method can be used to get the total count of dropdown list value.
interview qtns pdf ha iruka bro iruntha send panunga live classes or teams class conduct panra idea iruntha slunga join panikren real project mari build panra mari maven testng lam vaichu selenium la web based ui automation panra mari
No plans for live classes. No PDFs for interview question. But if u refer the Playlist tab, creating real projects, interview questions, maven. Everything is there.
Sir oru doubt.. future reference kaga dhana variable create panni store pandrom.. adhu create pannama like last video indha drop-down box test panna mudiuma??🙄🙄
Super
Hi Arul, One doubt , by using sendKeys method can we able to select value only in static dropdown or in dynamic dropdown also ?
HI Arul...How to select multiple dropdown options with" findElements" instead of "findElement"?? And how to select option in dropdown using keyboard UpDown Arrow keys? Whats the code for that?
Findelements can be used only if there are more than one web element. For example getting the list of images, links in a particular page. If you want to use key press event, use robot class. Pls refer to file upload video, have explained key press nd key release event
@@LearnAutomationOnline Hats off dear friend!!
In your previous video (working with buttons) you have used Point class, and no objects are created for that with a new keyword.
But in this video, you have created an object for select class.
why? and how to differentiate btw these?
These are the basics of selenium. If you are going to select from a drop down, we have to create object for select class. That's mandatory. Point class will either be an interface or an abstract class. For interface or an abstract class, we can't create objects. Point class acted as a data type to store the points. When you watch the java playlist, you will understand this. For now, just remember, if there is a drop down with select in the html tag, you have to use select class.
@@LearnAutomationOnline Thanks for your quick reply.
It's Okay then, I don't wanna skip or jump to it right now. Let me continue to watch these videos in sequential. Hope my doubts will be cleared once I complete the Java videos.
I am facing an issue when inspect kendo drop down list in grid.
helo sir..having one doubt..i want to print the selected options as well as unselected options is there any way to print unselected options in a list of options
Can you please tell why 1st drop down only selected in final output . What about 2nd and 3rd
Last multiselectbox is not working even though there is no logic mistake kindly help me, is there any other way to select all elements together? Thanks in advance
Loved you videos❤️
Hi sir , you said index value is starts with 0 but in multiple select 0th position is not working
How to code wait time and css selector...could you please help on this
Hi Arul,
First and foremost million thanks for all your effort. The leafground.com is not available now and for the sake of handson i used seleniumeasy.com site. But somehow the functionality that you taught in this video was not working properly. I checked using various method but no luck. Kindly review and let me know if am making any mistake.
//Code starts here
package seleniumDemo;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Select;
public class DemoDropDown {
public static void main(String[] args) throws InterruptedException {
// TODO Auto-generated method stub
//load the webdriver
System.setProperty("webdriver.chrome.driver", "C:\\Users\\vaithse\\Desktop\\SETHU\\Selenium\\libs\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
//Load the Webpage
driver.get("www.seleniumeasy.com/test/basic-select-dropdown-demo.html");
//Load the drop down select class
WebElement ddSelect = driver.findElement(By.id("select-demo"));
Select dpdwnSelect = new Select(ddSelect);
//Select the desired value using "selectByValue" attribute
dpdwnSelect.selectByValue("Wednesday");
//Select the desired value using "sendkeys" attribute
ddSelect.sendKeys("Monday");
//Select the desired value using "selectByVisibleText" attribute
dpdwnSelect.selectByVisibleText("Friday");
//Retrieve the number of options in the drop down
List listoptions = dpdwnSelect.getOptions();
int totalddoptions = listoptions.size();
System.out.println("Total no of drop down options: "+totalddoptions);
//MultiSelect from listbox
WebElement multiselect = driver.findElement(By.xpath("//*[@id=\'multi-select\']"));
Select multiselectbox = new Select(multiselect);
multiselectbox.selectByValue("California");
//Thread.sleep(3000);
multiselectbox.selectByValue("Florida");
//Thread.sleep(3000);
multiselectbox.selectByValue("New Jersey");
//Thread.sleep(3000);
//Click FirstSelected button to retreive the 1st selection made
driver.findElement(By.xpath("//*[@id=\'printAll\']")).click();
/*above line should return all those which are selected. But it returns just the last selection. When tried doing manually from the site it is working perfectly.*/
}
}
//Code ends here
Once again thank you so much!!
Will try this code and let you know Sethu.
the leafground site is available on this URL, if you want, you can make use of this. testleaf.herokuapp.com/
Hello Anna, I couldn't click(select) from the dropdown. I got this error: TypeError: 'NoneType' object is not callable. Please help me to find this error
and I am doing with python selenium. Thanks
Hi sir, Select select=new Select(dropdown1); this line not understand sir. So, pls explain this line sir
Xpath copy panama syntax oda erukadhu la ec ah find out panra mari solunga
usefulll
bro number of DropDowns options print ahituka ilayanu console kamikala
Hi bro
Its not working if i try to use select by text for second dropdown
I even changed the select object name
Can yu pls guide me bro
I have a doubt. how to select a sub-drop down option which is dependant on a drop-down options and that sub-drop down option is enabled only after the first drop down index value is selected
You have to interact with the first drop down. For example, lets say there is a country drop down, if you select that, you will have another drop down with the states. So if you perform the first option, then the second one will be available and you can select the states from it.
Hi bro i have one doubt. I want total num of drop-down box on web page. And select last value from last dropdown box.
This is not doubt. Its your requirement. Pls try to understand the concepts and try on your own. If you have any doubts, feel free to ping.
3 in line 25 is not inside double codes. Whereas 2 & selenium in lines 26 & 27 respectively r inside double codes. May I know the reason. When to choose double coeds & when not to.
If we select by index method number. Integer will not be inside double quotes. Whereas, string will be inside double quotes. Select by visible text and select by value requires string value.
Hi sir, since the exception is thrown by main method and jvm will terminate the program seeing thread.sleep .How is the program working completely normal here? Can you please tell me
If you put the sleep after the line which will throw exception, u will get exception and not a normal execution. If u put it before, the process will be suspended for given time, and by the time it resumes, the elements will be available and there is no place for exception
Sir Fluent topic la epo bro varum ilana athu nenga teach panra syllabus la iliya
Pls refer selenium interview questions playlist
Hi bro..Am a complete beginner of testing. So that I have this doubt. Can u tell the realtime of testing. Means here we did only send keys, append, click, etc...
1. How to test the web application using these operations?
2. Can weable to change the values of html codings?
I Don't understand this. Pls clear my doubt.
A testers job is to test only the functionality of the web applications. Not modifying html codes. If u are a tester at Facebook, u will check if u can login, make a post, edit post, delete post etc. How will u do this? Manually, u will know where to enter the username, password and so on.. but when using automation, u have to instruct the code, on where to do and what to do...
@@LearnAutomationOnline which means in our code we need to enter / modify/ do the operations to check the functionality. Suppose user typed unwanted / missed some texts or for eg in email box, if user typed without @, then alert box should display. Like that we need to code. Isn't it? Apart from functionality what test?
@@HITMASS777 for instance if the user is not entering a valid data for an input field, then the user should see an error or warning message. this comes under client side validation. Meaning, on the browser itself the dev team will do these validations instead of taking it to the server. The tester has no part in it. Having said that, the tester has to check if he or she is seeing the error message for invalid data. It's not a tester's job to write business logic and behavior of the application.
@@LearnAutomationOnline understood bro. Fixing is dev job. We have to inform them the occurance of errors if so. Tx
Anna Multiple selectla user type panramari irundha.. Epdi anna command kudukuradhu..
Dear Sir, In the "List" i am getting red underline when i move the cursor onr, but i am getting only "Remove type Arguments".( No other options) And I am not getting more options like yours when you move the cursor on List.Please help me how to fix that..I am not getting more option Java.util. please advise me how to get that..
webElement should be WebElement. it should be caps.
Sir, I have changed "WebElement". I am talking only about "List" which comes with underline of red color. when I hover the mouse on the "List". I am not getting many option to choose like Java.util. its not showing anything in the popup window.
Most of the times, if there are any misspellings on a line, may not be directly indicated. In you case, if you are not getting the automatic suggestions, try to remove the line again. First try to give list alone. Just type list and give control space key. It will show you the suggestion. Or else, you can manually provide the import statements. Java util list on the import segment. That error will go.
Yes I resolved the issue myself. sorry to bother you.. thank you Sir.. Appreciate your videos
4th testbox size code pannom la...adhuku output varala...neengalum video la athukana output cover pannala...plzz teach that
Thanks bro
brother in the LIST why neenga element oota id ,name or xpath copy pannala.
how it will identify which element?
Please refer again. I would have used xpath for the list of selectable element.
This was the code i used for multiselect. programme is running but not selecting the variables
WebElement sixthdropdown=driver.findElement(By.xpath("/html/body/div/div/div[3]/section/div[6]/select/option[1]"));
Select multiSelectBox=new Select(sixthdropdown);
multiSelectBox.selectByIndex(1);
multiSelectBox.selectByIndex(2);
multiSelectBox.selectByIndex(3);
Bro have you find the solution? me too facing the same probelm.
In line 37 when i copied the xpath i get //*[@id="contentblock"]/section/div[6]/select/option[1] & due to this i get error. In ur video the xpath is //*[@id="contentblock"]/section/div[6]/select. So i removed the extra /option[1] and there was no error. I copied the xpath twice & always i get //*[@id="contentblock"]/section/div[6]/select/option[1] . Not sure why i get the extra /option[1]. Can u help me with this?
You are selecting the drop down first and inspecting from 1st option. That's why the first option is getting added. In drop down, we will have to first identify the whole drop-down instead of selecting the first element.
@@LearnAutomationOnline ok got it. Thanks
Hi Anna,
How to get value of drop-down.eg-i need to print the value selenium .how to get that value
Use gettext method and print it.
@@LearnAutomationOnline Great .Thank you anna.but I need to print particular value.this gettext method gives all values of drop-down
Using get options method fetch all the value, store them in a list. From that you can fecth every single value
@@LearnAutomationOnline Got it. Thank you☺️
Sir...What's the difference between selectByvisibletext() and dropdown selection using sendkeys() ?? Can you pls reply? :_)
No difference. Ita all different options available for us. A bike has kicker, and self start as well. Ays of doing is different but the purpose is to start the vehicle. Same way.
@@LearnAutomationOnline ok sir... Great... Thanks for your reply... I'm getting an error while using sendKeys() fn..not able to send string values through it.. The error is... The method sendKeys(CharSequence[]) of the type WebElement cannot be used with argumets(String).
Have replied to your other comment which had this question. Change your compiler level in eclipse. For details refer that comment
A testers job is to test only the functionality of the web applications. Not modifying html codes. If u are a tester at Facebook, u will check if u can login, make a post, edit post, delete post etc. How will u do this? Manually, u will know where to enter the username, password and so on.. but when using automation, u have to instruct the code, on where to do and what to do...
Bro .. Please tell how to use firebug and firepath on firefox now as they no longer available in firefox.. Is there any alternative ? Please tell me
Like chrome, Firefox also is having built-in options to copy xpath. There is no need of firebug or firepath.
@@LearnAutomationOnline Thanks bro . Could you please put a video about explaining the LIST collection and WEB ELEMENT ? I Only know Web element is an interface but when trying to understand the line " WebElement element = driver.findElement" i am not able to make myself clear . It would be good if you explain about Webelement interface
For list and other collection types refer to my java crash course playlist. There's nothing much to explain web element interface. Just think of it as a data type in case of confusion. Integer value will be stored in integer data type. Same way, element that we find on. the web stored on webelement.
@@LearnAutomationOnline Thank you .
Hi Sir , I have one doubt ..How to select the dropdown value if the html tag is not used as "select".
Same doubt got any idea?
You can use find elements function and iterate through the values. Reference: stackoverflow.com/questions/36848352/how-to-select-value-from-dropdown-without-using-select-class-becuase-in-have-dr
This code is not working for Kendo Dropdowns...Pls hlp me anna
without using select how you will do drop down....can you explain
If it's a select tag based drop down. You have to use select class only. Or else you can try using JavaScript executor.
@@LearnAutomationOnline Can you please tell us how to do that sir
U didn't show the printed output of Number of options
What if we have 100 index in multiselectbox??
That's a poor UI design. Chances are less for that.
@@LearnAutomationOnline Okay bro,
Sir y we can't able to give multiselect in the same select class??
There are no select all options in selenium. However, we can use get options method to fetch the drop down values, and iterate through them to get the values.
Bro i saw your video and try one sample program with both text box and dropdown box combination after execute the program it will run upto the text box only there is no movement in dropdown list box and my program is correct i cant able to identify the error could you please guide me Send me your mail id i will send The Screenshot so that u will able to identify the mistake
new ethuku use panrom nu soluga bro
To create an object in java new keyword is used. If u r a beginner I recommend u to watch from part 1 of selenium
@@LearnAutomationOnline part 1 la erunthu thaa bro watch pannitu practice panren ...part 8 varaikum beginner level completed .... Useful la eruku broo ..... Anthaa new ethuku nu clear explanation therilaa athn keten broo
@@LearnAutomationOnline actually nan training institute la um course eduthuruken bro .... Software testing ,java , html css js angular .....nan testing la tha join pana keten but combo nu development tu kum kututhaga join panniten but romba confuse aiten testing olunga concentration panna mutilaa .... Epo thaa development venam nu decide pannitu .... thirumba unga videos pathu learn pannitu eruken broo automation ..... thankyou bro romba useful laa eruku learn pannirlam nu confident eruku unga video pathathum.....
@@LearnAutomationOnline bro neenga solratha follow panna lai pothum laa interview questions ku..... interview crack panirlam la broo .... I have one more doubt testing laa communication English entha level laa theva padum broo .... Basic ka tha therium enaku athn kekuren..... technical skill la vachi move panlam nu nenaikuren broo .... Ethathu suggestions soluga broo
where is the advanced courses inselenium, can anyone please tell me ?
Refer the playlist tab. You can see the videos clubbed together under different categories
Hi,
I am unable to proceed with the member ship payment option , Can you please help on it ..... ?
Gpay number ?
Bro multiple drop down did not work my laptop
Did not work means u got any exception?
Select cannot be resolved to a type nu varuthu bro!!!
Import selenium select class or like I said in many videos, use control space to generate code
Brother neenga entha ooru brother.. java ethum teach panringala?
Hi, anybody can help me how to solve this: am writing this below mentioned select class
WebElement element = driver.findElement(By.xpath("//span[@id='month']//span[@class='next-select-inner']"));
Select select = new Select(element);
the "Select" is change like this : "org.openqa.selenium.support.ui.Select select = new org.openqa.selenium.support.ui.Select(element);"
how to slove this.