Dynamic XPath in Selenium using Different Approaches

  Рет қаралды 300,986

Mukesh otwani

Mukesh otwani

Күн бұрын

Пікірлер: 223
@aishwaryapathak553
@aishwaryapathak553 8 жыл бұрын
Hi Mukesh , Just wanted to appreciate the way of teaching and explaining you do. I enrolled for selenium class room training but your online sessions proved to be more effective. Thanks
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Hi Aishhwarya, Thank you so much :) I am glad it helped you. Keep visiting and Happy Weekend.
@gnreddyk7866
@gnreddyk7866 8 жыл бұрын
Dear Mukesh,Investing your time to fulfill our minds with these concepts is Awesome task..We are grateful to your time..With folded hands ..thanks alot .
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Your most welcome mate :) Kindly share with your friends too.
@karthickshiva2671
@karthickshiva2671 6 жыл бұрын
Once I thought I can never learn Selenium, now you are also one of the reason where i started automating some web pages. thanks brother you are awesome
@MyGreatAchievers
@MyGreatAchievers 8 жыл бұрын
My hunt for XPATH ends here Mukesh...u r simply awesome.....Disappointed as there are only 29k views....deserves more...
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Thanks Rao :) Views are less but user attention is high. Keep visiting
@towhidskynet
@towhidskynet 7 жыл бұрын
12:15, 16:00, 9:00, 20:50,25:00 Very good examples of : 1. how to see number of matching nodes 2. use of and or logic 3. use of text() and contains(), starts-with() method. 4. use of following
@mohammedmoosasharieff1816
@mohammedmoosasharieff1816 5 жыл бұрын
Thanks Mukesh... Wanted to learn writing xpath since months! The video has been helped a lot.
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Thanks Moosa, I will glad you understood Xpath concept.
@vrjosyula
@vrjosyula 9 жыл бұрын
Thanks a lot Mukesh. This video cleared a lot of my doubts and gave a lot of insight.
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
+vrjosyula let me know if any help from my side.
@saiputlur
@saiputlur 8 жыл бұрын
thats very precise and clear explanation. easily understandable. thanks a lot.
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Hey Krishna Thank you :) I am glad it helped you. Keep visiting.
@seetalbachu758
@seetalbachu758 9 жыл бұрын
Very good tutorial. Easy to understand.
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Seetal Bachu Thanks Seetal keep visiting :)
@vamsi476giet
@vamsi476giet 8 жыл бұрын
The most important thing in selenium is to find the element and thanks for explaining it in very detailed manner
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Thanks Vamsi
@ajaysuresh3781
@ajaysuresh3781 4 жыл бұрын
Thanks Mukesh. Your tutorials are really helpful and informative
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Thanks Ajay
@rekham9489
@rekham9489 9 жыл бұрын
Very Nice and easy to understand....best tutorials. Thank You Mukesh Sir :-)
@abhisheknimbalkar8509
@abhisheknimbalkar8509 9 жыл бұрын
Thanks Mate... Xpath was never so easy to understand. Keep up the great work ...
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Abhishek Nimbalkar Thank you Abhishek :)
@seemaahuja1750
@seemaahuja1750 7 жыл бұрын
Thanks a lot mukesh for this excellent vedio
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
+Seema Ahuja thank you Seema keep visiting and let me know if any help required from my side. Happy weekend
@chinmayachittaranjanjena2575
@chinmayachittaranjanjena2575 9 жыл бұрын
Good Tutorial, understood how to make xpath
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Chinmaya chittaranjan jena Thanks Chinmaya
@nikhiltinku3232
@nikhiltinku3232 4 жыл бұрын
Thankyou Mukesh, your videos are really helpful.
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Thank you Nikhil 😀
@rd669
@rd669 7 жыл бұрын
very useful video. Thank you so much Mukesh!
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
THanks mate
@MdAlam-ie7fg
@MdAlam-ie7fg 7 жыл бұрын
Hey, Mukesh thank you very much, its really helpful
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Thanks Alam
@grijeshmnit
@grijeshmnit 7 жыл бұрын
Thanks Very much. You saved my lots of time and efforts (y)
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Welcome Grijesh
@AJAUTOMATION
@AJAUTOMATION 4 жыл бұрын
Brilliant job Mukesh..I have learnt a lot from you.. #AjAutomation
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Thanks a ton mate
@mykyramylife
@mykyramylife 7 жыл бұрын
Thanks Mukesh, very useful.
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Thanks mate
@pratikkhakria6319
@pratikkhakria6319 8 жыл бұрын
Wonderful Mukesh. This video is awesome. :)
@AbhishekGupta-kn8pv
@AbhishekGupta-kn8pv 9 жыл бұрын
It was quite knowledgeable...waiting for another one..However I would request to upload a video on CssSelectors also...Thanks.
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+abhishek gupta CSS will updoad next weekend
@najeebzahed6348
@najeebzahed6348 6 жыл бұрын
For the example you used on 16:27 here's the XPath I use able to use today: //td[@class='t posts']//a[contains(text(),'Posts')]
@siyarsahar9954
@siyarsahar9954 5 жыл бұрын
Dear Mukesh Thanks for all the videos you make! in 23 rd minute, you talk about if id is dynamic, so we use starts-with, but you forget to write starts-with and you write contains.
@chaitanya2590
@chaitanya2590 8 жыл бұрын
Video was very helpful , Thank you!
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
+Chaitanya G.A Your most welcome let me know if any help from my side.
@asmarazaq9122
@asmarazaq9122 5 жыл бұрын
Thankyou Mukesh, it was really helpful
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Most welcome Asma... keep learning.. Happy to see that you are learning over weekend 😃
@LINGAREDDYSabbasani
@LINGAREDDYSabbasani 7 жыл бұрын
Very good explanation thank you !!
@bobin1619
@bobin1619 8 жыл бұрын
good explanation..
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Thanks Bobby
@ppatel332
@ppatel332 6 жыл бұрын
Thanks sir. This video is really useful.
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Welcome, Parthiv... Please keep visiting...
@atulthorat5670
@atulthorat5670 4 жыл бұрын
Thank you Mukesh..!
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Thanks Atul
@pinkisukhwani9600
@pinkisukhwani9600 7 жыл бұрын
Hi Mukesh, you are doing great ...!! can you pls make video on "Parameterizing xpath"
@dbvs007
@dbvs007 8 жыл бұрын
Very useful thanks Mukesh
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
+Bhanu Surendra THanks Bhanu keep visting
@ramgupta4567
@ramgupta4567 7 жыл бұрын
Nice video on Xpath.Thanks Mukesh
@khyatisingh404
@khyatisingh404 3 жыл бұрын
Sir I love you !u have given me a solution thank you!
@tarunakalra8993
@tarunakalra8993 5 жыл бұрын
Hi Mukesh ..Your sessions are really helpful but it would be good if you write sequence number of sessions for beginners.
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Thanks Taruna, sure I will make them is sequence soon.
@SagarKumar-rg8xc
@SagarKumar-rg8xc 6 жыл бұрын
very well explained, good learning from you
@dbvs007
@dbvs007 8 жыл бұрын
Syntax seems incorrect when we want to use multiple attributes(video @11:14 min) , @ symbol is missing for the 2nd attribute.... Thanks
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
+Bhanu Surendra I will make changes
@PradeepChauhan17
@PradeepChauhan17 6 жыл бұрын
Very informative video. Thank you for this. Few questions: 1. (Ref:17:48) At some place you mentioned @name='value'. At another you mentioned @href, 'edit.php'. The = is not mandatory? Where all it's used? 2. (Ref:17:40) How to find how many methods (like contains, text, etc.) are available? 3. On FireFox 59 (Quantum) how do I per a search for the XPath ? Do I see a similar search box like I see in FireBug/FirePath which is incidentally not supported.
@shivuvali
@shivuvali 7 жыл бұрын
hi mukesh..what is the version of the FF you have used in the above tutorial.
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Hi Shiv I used FF 46
@and7998
@and7998 8 жыл бұрын
Awesome video! keep up the good work. Can you also upload a tutorial on how to work with s and windows handles in selenium?
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
+Anu Dube Hi Anu for frames will upload tomorrow. For window handle please refer below link. Note- Please use headphones for this video voice is very low. kzbin.info/www/bejne/f5SkdZKbfppjrJo
@santosh830
@santosh830 7 жыл бұрын
In hybrid driven framework,why did you use local driver in homepage.your explanation is excellent.thank you
@mastanmmr374
@mastanmmr374 8 жыл бұрын
hi mukesh' when to use absolulative & relative xpath
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
It is up to your requirement I use combination of both.
@arijitbhattacharjee5243
@arijitbhattacharjee5243 7 жыл бұрын
Hi Mukesh Sir, Thank you so much. Its really helpful. But i have one query: How to handle auto-suggest search drop down in selenium webdriver? Can you please guide.
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
You can use findElements method and list concept in Selenium to handle autosuggestions.
@Jayakrishna-ly3ei
@Jayakrishna-ly3ei 3 жыл бұрын
4:38 hi sir, 1st we write username, we gave a tab button, now we are in password textbox,we send data now in this . how to write the program for this ?
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
You can use sendKeys with Keys option or Actions class.
@Jayakrishna-ly3ei
@Jayakrishna-ly3ei 3 жыл бұрын
@@Mukeshotwani I tried sir I am not getting. Can u send me that 4 or 5 lines code sir ?
@piyushratnam5490
@piyushratnam5490 8 жыл бұрын
Hi Mukesh, Thanks for this Video, you have nicely explained everything, learnt a bit more about writing XPATHs. One thing stroked my mind - Does HTML have a tag as well, got confused with below example, Syntax : //tagname[starts-with(@attribute-name,’’)] e.g. //id[starts-with(@id,’’)]
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Hi Piyush, HTML is the parent tag but it does not have any id. Xpath examples will be applicable for other elements.
@nihardash9619
@nihardash9619 5 жыл бұрын
Hi Mukesh,the website you are using for example not working in google chrome(wordpress),can u use some other geninue websites which are working in google chrome and explain the same things .Thanks for your videos
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Nihar, you can use this application for testing opensource-demo.orangehrmlive.com/
@sankassasenevirtha2049
@sankassasenevirtha2049 4 жыл бұрын
Really helpfull
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Thanks Sankassa
@muthuvel2390
@muthuvel2390 8 жыл бұрын
hi mukash thanks for your video it is very helpful and i have one doubt if xpath values are changed dynamically interviewer asked that question so i dont know how to answer ths question so please.
@Iceeboltt
@Iceeboltt 3 жыл бұрын
Hey Mukesh so what is wrong if we use the same xpaths why we need to customize xpaths what is the benefit in that for a tester ?
@KevinLi-wx1kq
@KevinLi-wx1kq 9 жыл бұрын
Any info about how to handle svg object/graph (using css/xpath) in Webdriver?
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Kevin Li Hi Kevin, Any example of SVG objects?
@gavishwa
@gavishwa 7 жыл бұрын
Nice One Mukesh.Thanking you for sharing the info. From FireFox v 57 we do not have support for Fire Bug. Could you please share more info on how to get the x path by using fire fox v 57..
@praveen420ify
@praveen420ify 7 жыл бұрын
1. Open mozila Developer window.( Press f12) 2. Spy on required Element. 3. right click on Path comes in Developer window after spying element 4. Click COPY option and then U can select xpath( Or other locator options)
@luckywithpooji-telugu
@luckywithpooji-telugu 5 жыл бұрын
can u upload all ur selenium clases in sequential mannaer we not able to find ur all videos regarding selenium
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Lakshmi I will rearrange them soon
@Deliquesent
@Deliquesent 5 жыл бұрын
What is the need of using OR and AND functions in Xpath. If we can find a webelement with 1 unique attribute, then is there a need to specify the other attribute too?
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Sakshi, in case if one attribute changes so other will be used for identifying web elements.
@momomeshtv7318
@momomeshtv7318 3 жыл бұрын
can we find the xpath of facebook video / post comments? it appears to be a list or something that needs to click before it expands out.... furthermore it doesn't show ALL the comments you have to click on the view more to get all.... is that doable with selenium?
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Hi Buddy please check this www.selenium.dev/documentation/en/worst_practices/gmail_email_and_facebook_logins/
@arundhathimurthy3176
@arundhathimurthy3176 7 жыл бұрын
contains function(16:03) didn't work because of wrong syntax. //input[contains(@name,'post_title')] should work.
@vijayaidni
@vijayaidni 6 жыл бұрын
good observation
@nitingupta82
@nitingupta82 9 жыл бұрын
Another excellent video Mukesh! But please help me explain the difference when we are using the text() method. There are 2 ways it shows for text() ' = ' & ' , ' . One form is //a[contains(@href, 'edit.php'')][text() = 'Posts'] and other is //a[contains(text(), 'Dismiss this message')] Am not sure which method should we follow = or , after text() method. Is there any standard that must be followed or it's more of hit n trial in particular for text() method?
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Nitin Gupta Hi Nitin let me clear it Text()- This will chek for exact text and if found then only it will return result. while contains(text(),'')- it only check partial text
@siddeshwarmithbavkar4232
@siddeshwarmithbavkar4232 7 жыл бұрын
Really awesome!!
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Thank you Siddeshwar
@sajeerkunnoth6630
@sajeerkunnoth6630 6 жыл бұрын
In this video, 16 second's you are explaining how to use contains, but it's not working because you have used "//input[contains(@name='post_title')] " In my understanding if your using contains you have to use coma. Eg: //input[contains(@name='post_title')]
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Hi Sajeer Thank you for correcting me.
@parulisha
@parulisha 7 жыл бұрын
Hi Can you help writing the code if there are 100 text fields on one Page and we want to count the number of such fields which are purgent? Thanks
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Hi Parul nice question you can use findElements and then size method to get the count learn-automation.com/difference-between-findelement-and-findelements-in-selenium-webdriver/
@parulisha
@parulisha 7 жыл бұрын
Thanks Mukesh.
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Cheers
@srinivastrully3789
@srinivastrully3789 7 жыл бұрын
HI Mukesh, Is XPATH value depends on the browser ? I have heard that, xpath found in FF is different to the one in IE; Is this true?
@ravi_nelluri
@ravi_nelluri 9 жыл бұрын
In my application I have two fields say Email id and Conform Email id . For both of them id,class name everything is same. In this situation who can i find specific test box
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Ravi Nelluri in part 2 I have covered this scenario please visit part2
@MukeshKumar-iw7rr
@MukeshKumar-iw7rr 7 жыл бұрын
Hi Mukesh, thanks for this video. Can you upload videos on how to find xpath for SVG and AngularJS as well.
@sudheer1330
@sudheer1330 8 жыл бұрын
Hi Mukesh, While adding Assert, am getting error "This element neither has attached source nor attached Javadoc and hence no Javadoc could be found.". could you please help.
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
You can attach SRC jar then this error wont come
@vishavgupta3717
@vishavgupta3717 5 жыл бұрын
Thank you very much
@kokilajs7796
@kokilajs7796 3 жыл бұрын
Hello sir, I have to write the dynamic xpath so that everytime it should increment and pass that value to xpath and this xpath finding can go upto 2 or 3 pages
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Yes Kokila what issue you are facing?
@tomg2982
@tomg2982 7 жыл бұрын
Hi Mukesh, This is really good tutorial, thank you. Could you please explain how to find xpath for elements which are repeated several times in several the same tagnames ex: for odds in bet365 : the following sentence : 10/1 is repeated over 10 times. How to write xpath for the one interresting me? Regards: Tom
@ravikumar-sharma-k
@ravikumar-sharma-k 7 жыл бұрын
Tomasz G use xpath like this:WebElement element = //*[@class=gl-Participant_Odds].It will find all elements with that class.
@ravikumar-sharma-k
@ravikumar-sharma-k 7 жыл бұрын
Tomasz G use xpath like this:WebElement element = //*[@class=gl-Participant_Odds].It will find all elements with that class.
@towhidskynet
@towhidskynet 7 жыл бұрын
do you still have this workdpress site? if so, could you please post the link ? Thanks
@dilshodalikiulov2150
@dilshodalikiulov2150 7 жыл бұрын
Thanks
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
+Dilshod Alikiulov welcome mate
@tapaskhandai
@tapaskhandai 4 жыл бұрын
Which browser u r using?
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
it is Firefox earlier we have firebug and firepath where we used to write xpath.
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hi Tapas here is the link for updated video kzbin.info/www/bejne/oZu3pHqkoLWEe8U
@tapaskhandai
@tapaskhandai 4 жыл бұрын
@@Mukeshotwani Thank you
@manishrajurkar8161
@manishrajurkar8161 6 жыл бұрын
HI Mukesh, In Salesforce Lightning mode, with AURA framework, there are no unique attributes identified. we are taking reference of the preceding /following and taking index number element to generate XPath. However, there are still more challenge, the XPath you design will not work next time on UI index get changed. are there any best practice to deal with this situation?
@Herrmann2k
@Herrmann2k 5 жыл бұрын
I am also facing the same issue using Salesforce Lightning, the index gets changed after a few runs. can you please suggest how do we deal in this?
@lorenzovidaurre1491
@lorenzovidaurre1491 5 жыл бұрын
Hola a todos!! me sucede lo mismo, si tiene alguna ayuda comenten, por favor
@lorenzovidaurre1491
@lorenzovidaurre1491 5 жыл бұрын
con este Xpath //a[@class='select' and @xpath='1'] puedo encontrarlo en ChroPath el elemento buscado, pero cuando lo ingreso en el Xpath muestra error Select drpCountry = new Select (driver.findElement(By.xpath("//*[@class='select' and @xpath='1']")));
@sangeetham3533
@sangeetham3533 6 жыл бұрын
Hi mukesh, how can i compare string value and webelement in if condition ,suppose i want to compare actual and expected ,actual is string and expected is of type webelement.please suggest me
@prc6075
@prc6075 6 жыл бұрын
Hi Mukesh What will be the xpath for getting the dynamic id of the radio button. Here i enter data (4 text boxes) and click on add button, the data is added and displayed with a radio button. If i add 2 times then 2 rows of data added with radio button for each row of data (e.g. radio0 and radio1). so to delete that row i have to selet radio button and click delete button. Now how to select radio1 and delete that row?? I tried with xpath but not able to do it.
@chandanrai6302
@chandanrai6302 7 жыл бұрын
hi sir thanks for your video,please clear my one doubt if in web table duplicate name is available and unique transation id is available then how to verify the data on the basics of the transation id please let me know REPLY
@himanshuthakur1605
@himanshuthakur1605 7 жыл бұрын
hi mukesh . An interviewer ask me how to handel if there is suppose in one row display ''himanshu'' as link and next to column again ''himanshu'' as a text and below this row in another row written ''himanshu'' as text and next to another column ''himanshu'' as link. then how will be locate ''himanshu'' in 2nd row first column then click on link ''himanshu'' in 2nd column with out using xpath or other locator? this kind of scenario was there? Pls help me
@nmkkannan1256
@nmkkannan1256 7 жыл бұрын
Use findElements(By.linkText()). Use index to specify
@keshojukavya2830
@keshojukavya2830 5 жыл бұрын
Hi Mukesh, How do we create xpath in chrome? Because there is no firebug in firefox now. Please help
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Here is the link kzbin.info/www/bejne/b3-adoWPjMedq9k
@bibhutijha1113
@bibhutijha1113 7 жыл бұрын
Hi Mukesh , Basically I am QTP tester and i have started learning selenium recently . So i would like to know if there is any like register user function which is used in QTP through which we can check the object existence or perform any action without writing the codes again and again we have to write a single function then we have to pass the object to that function and the required action is performed . So can we do it in selenium ? let me given an example :- WebElement UserName = driver.findElement(By.xpath("//*[@id='user_login']")); if (UserName.isDisplayed()){ UserName.sendKeys("admin"); } So i want i dont have to write these 3 above line . i will just pass xpath , value , varaible name. please help
@lavanyaaparamanandham4088
@lavanyaaparamanandham4088 4 жыл бұрын
Hi Mukesh, I am new to selenium, I am practicing to write my own xpath in your blog. I am trying to mouse hover to automation tools tab, I am trying to create my own xath for that, but I am getting error. can you please help me action.moveToElement(driver.findElement(By.xpath("//a[contains(text(),'Automation Tools')]"))).build().perform();. the error I am getting is unable to locate element.
@joshnaranimohapatro4132
@joshnaranimohapatro4132 4 жыл бұрын
please give me the link ,for learn automation for dynamic x path
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hi Anjali, here is the link learn-automation.com/how-to-write-dynamic-xpath-in-selenium/
@sudhakark8386
@sudhakark8386 8 жыл бұрын
Hi mukesh I am unable identify the drop down element. I.e //div[@class='mclc' and text()='002region'] how to identify this one.. could you please help me.
@mushfiquazaman9597
@mushfiquazaman9597 8 жыл бұрын
Helo Mukesh,your videos are so wonderful, But I cannot access learn-automation.com site. isn't it open for everybody. Please help. Thanks.
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Thanks Zaman, There was some maintenance so blog was down,
@subhasisrupali
@subhasisrupali 8 жыл бұрын
Hey Mukesh - Any idea if firebug has been merged with firefox developer tool? I have FF 51 on my laptop and firebug 2.0.18 is deactivated. There is no way for me to check the xpath. Can someone please help on this.
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Hi Subhasis, Kindly use FF 48 or 50 then install firebug from add on it is working for me.
@chetu19
@chetu19 8 жыл бұрын
ftp.mozilla.org/pub/firefox/releases/ Firefox release versions.
@prashanttiwari5855
@prashanttiwari5855 8 жыл бұрын
Hi Subhasis, you have install the older version 50.1.0 for FF. the latest version is not supporting firebug.
@pushpaksharma9906
@pushpaksharma9906 7 жыл бұрын
Hi Subhasis, Please perform the below steps 1. Open a new tab in the browser 2. type about:config 3. Now search for browser.tabs.remote.autostart 4. Toggle the value to False Hope this will work
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Use FF 46
@baldygaming2226
@baldygaming2226 7 жыл бұрын
Hi mukesh, im having trouble with xpath, my issue is this. it works perfectly fine with firefox but then it comes to chrome it gives me this kind of error org.openqa.selenium.WebDriverException: unknown error: Element ... is not clickable at point (1364, 408). Other element would receive the click: ... im just confused why? Thank you again mukesh have a blessed day
@mitanayak4401
@mitanayak4401 8 жыл бұрын
its really helpful,but how to get the firepath in our browser?
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Hey Mita, you can use default firefox profile so when you will start the test you will get the firepath plugin too.
@mitanayak4401
@mitanayak4401 8 жыл бұрын
Hi Mukesh,ya i got it,its an extra addon i ve to install.Learnt something new,really helpful.Thanks.
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Cheers
@Yuvaind
@Yuvaind 8 жыл бұрын
Mukesh otwani pls send me ur mail id: My mail id: yuva.raj19@gmail.com send me empty mail
@Bujji28243
@Bujji28243 7 жыл бұрын
we have two fields username and password ,but our attribute both r same example id=ABC, both username and password attribute s r same then how we can pass text only one field username???how to write xpath???
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Hi Nagu, You can use findElements and get the index and play with web elements.
@Bujji28243
@Bujji28243 7 жыл бұрын
Thanks for giving a reply but little bit confusion, how to perform index number can you write sample code for me, please......
@90ankush
@90ankush 8 жыл бұрын
Hi Mukesh, In other video you explained the exception which comes when we use FF 47 and selenium 53. So as per you i degraded FF to 46.0. It worked perfectly fine for a day or two. But again it started throwing org.openqa.selenium.firefox.NotConnectedException. Could you please help here . Thanks !! Ankush
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Stick to 45 and Selenium 2.53 which will make test stable.
@vvkkumar3691
@vvkkumar3691 6 жыл бұрын
"org.openqa.selenium.ElementNotInteractableException: Element is not reachable by keyboard" . I am getting this error could you help me.
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
HI Kumar please check below link learn-automation.com/invalidelementstateexception-in-selenium-webdriver/
@luckywithpooji-telugu
@luckywithpooji-telugu 5 жыл бұрын
if we dont use firebug addin how derive xpath with our wonself
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Lakshmi we have new plugin for xpath now kzbin.info/www/bejne/oZu3pHqkoLWEe8U
@julyuser1030
@julyuser1030 4 жыл бұрын
Good
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Thanks
@RajuDas-zn3gx
@RajuDas-zn3gx 6 жыл бұрын
Mukesh, for my application I have written a xapth to identify a label as //td[text()=‘CK_SUM’] and this works good for chrome but does work for ie. can you please help me to fix this?
@vishwa2433
@vishwa2433 6 жыл бұрын
Xpath for ie some time change, check the unique identifier for parent /grand parent and find the child td
@narasimhareddy1103
@narasimhareddy1103 7 жыл бұрын
Nice Video Mukesh. I am facing difficult in identitifying the xpath for an element called "My Account" button in the home page of the url "www.phptravels.net/". I have tried using Firebug and absolute Xpath. The problem is in webpage the Web Element is highlighted but during run time the WebDriver is unable to Identity the button. Please Help.
@hakan.tektas
@hakan.tektas 6 жыл бұрын
How do I capture dynamic id.
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Hi Tektas any example so that I can show you the solution..
@hakan.tektas
@hakan.tektas 6 жыл бұрын
I can't share the code, but there is a situation. The input screen also changes the ID page every time you refresh.
@kalyantpv
@kalyantpv 6 жыл бұрын
I had a similar situation where the id was changing based on the data that shows up on screen. However, it was based on a particular logic.. so the id was being suffixed by an id in database etc.. so I wrote code to first figure out what that value would be depending on input data and then dynamically figure out the id. Maybe your situation is even more dynamic?
@swatimishra6781
@swatimishra6781 4 жыл бұрын
Sir please explain how automate pie chart in using selenium python.
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hey Swati, I wont recommend to automate pie chart.
@swatimishra6781
@swatimishra6781 4 жыл бұрын
@@Mukeshotwani sir Than how to read data in side of pie chart using selenium python? How to validate pie chart data?
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hi Swati as I said this won’t be stable plus in Automation reading chart graph bar code and images don’t automate.
@sanjeevgautam90
@sanjeevgautam90 8 жыл бұрын
Hello sir, I can't able to login on www.demosite.center/wordpress/wp-login.php with user id: admin & Password : demo123 It's showing 404 error
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Hey Sanjeev kindly use below site for demo demo.avactis.com/4.7.9/
@priyankag2354
@priyankag2354 8 жыл бұрын
hi mukesh !This is also not working
@nmkkannan1256
@nmkkannan1256 7 жыл бұрын
How to locate Xpath by text if the text is 'I'm Feeling Lucky'
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
+Inty Uyghur haha very nice 👍🏻 Inty
7 жыл бұрын
how i get this addon to firefox ?? please help me
@arsaurabh6044
@arsaurabh6044 7 жыл бұрын
www.techbeamers.com/use-firebug-and-firepath-in-firefox/
@swagatikamohapatra5428
@swagatikamohapatra5428 8 жыл бұрын
hay ..mukesh that password is not accepting in the login page
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Kindly use below url for practice enterprise.demo.orangehrmlive.com/symfony/web/index.php/auth/login
@neelamchakraborty9062
@neelamchakraborty9062 7 жыл бұрын
How to get xpath of watermark .
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Any example or demo site for this ?
@neelamchakraborty9062
@neelamchakraborty9062 7 жыл бұрын
Don't know was asked in interview. How to get an xpath of a watermark. if you find something please share. I guess this is a transparent object such as company logo.
@purusingh2793
@purusingh2793 7 жыл бұрын
i am not getting the html content pls help me..........
@sayari_sachanji
@sayari_sachanji Жыл бұрын
In this video, we don't have Mukesh voice
How to create Dynamic Xpath in Selenium Part 2
19:58
Mukesh otwani
Рет қаралды 125 М.
How to Capture Screenshot in Selenium Webdriver
26:03
Mukesh otwani
Рет қаралды 202 М.
How to Handle Dropdown in Selenium webdriver
31:43
Mukesh otwani
Рет қаралды 204 М.
Locators In Selenium Webdriver- Which locator in Best for Automation?
28:08
How to Handle Frames in Selenium Webdriver
27:03
Mukesh otwani
Рет қаралды 114 М.
How to execute failed test cases in Selenium webdriver
17:09
Mukesh otwani
Рет қаралды 97 М.
How to Handle Frames in Selenium WebDriver - Session 4a
20:47
Naveen AutomationLabs
Рет қаралды 178 М.