This is one of the most asked Selenium interview question and this question is to test our ability to handle dynamic objects.
The scenario is when we are searching some text say "seleniumhq" in Google, we will get some auto suggestions listed while we are entering the text and we need to click on the suggestion that matches with our requirement (here our requirement is "seleniumhq").
The auto suggestions will be listed in a web list as shown in the below image.
We will follow below steps to achieve this challenge
The scenario is when we are searching some text say "seleniumhq" in Google, we will get some auto suggestions listed while we are entering the text and we need to click on the suggestion that matches with our requirement (here our requirement is "seleniumhq").
The auto suggestions will be listed in a web list as shown in the below image.
We will follow below steps to achieve this challenge
- First we need to locate the list ('ul')
- Then gather all the suggestion elements ('li').
- Now loop through the suggestion elements and compare the text in it with the expected text.
- If texts matched click on the suggestion, and break the process.
Check out the code below for better understanding.
The screenshot looks like below after clicking on the required suggestion.
Now we are able handle dynamic Google search, Great!!. Please comment your queries and suggestions on this topic. Thanks for reading!!
#seleniumbabu #HappyLearning
#seleniumbabu #HappyLearning
Thanks for your information, it was really very helpful: Buy Fack Reviews
ReplyDeleteYour article contents are easy to read and understand the topic which i searched before.We expect your valuable blog posting in the future.
ReplyDeleteSelenium Training in Adyar
Selenium Training in OMR
Software Testing Training in Tambaram
Software Testing Training in Anna nagar
Software Testing Training in OMR
Selenium Training in Porur
Selenium Training in Chennai
Selenium Course in Chennai
Thank you very much for this great post. Buy Pinterest Followers
ReplyDeleteThis is one awesome blog article. Much thanks again selenium online training
ReplyDeleteIf your looking for Online Illinois license plate sticker renewals then you have need to come to the right place.We offer the fastest Illinois license plate sticker renewals in the state. hotmail-inicio-sesion.com
ReplyDeleteNice post.
ReplyDeleteSelenium online training
Selenium training
Spark online training
Spark training
splunk admin online training
splunk admin training
splunk development online training
splunk development training
splunk online training
splunk training
sql azure online training
sql azure training
sql plsql online training
sql plsql training
sql server dba online training
sql server dba training
sql server developer online training
sql server developer training
Great survey, I'm sure you're getting a great response. dodge challenger decal stripes
ReplyDeleteWhen looking for Nationwide Credit Card Merchant Accounts information, you will find that there are numerous different sources you can use. There is the old standby, the OE factory service manual, but is it always the best resource for auto repair information?
ReplyDeleteThanks for this blog post, I enjoyed it’s content and style. I came across this blog on the internet and today have additional it to my personal favourites list. I’ll be certain to arrive again quickly. Mega888 apk download
ReplyDeleteAt the point when numerous VW proprietors examine their VW auto they say the individual and portray them as though discussing an old companion. dealer ops
ReplyDeleteI really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people. 2020 Keystone RV Fuzion 410
ReplyDeleteIn this case you will begin it is important, it again produces a web site a strong significant internet site: 2021 Winnebago Micro Minnie 2306BHS
ReplyDeleteBelieve it or not, it is the type of information I’ve long been trying to find. It matches to my requirements a lot. Thank you for writing this information. Text Auto Reply
ReplyDelete