I spent hours looking for a solution to "Exception in thread "main" org.openqa.selenium.ElementNotInteractableException: element not interactable" error. Thank you so much. Your trick works perfectly. This video deserves a like.
Hi Mukesh, Can we write on text box with java script executer. In my project I have Pega model Window and it can not intractable. When run code it always says NoSuchElemnt.Or can you advice how to do automation for Pega Model Window?
Hi Mukesh, Just a small query here why specifically we are mentioning arguments [0] why not arguments [1] or any other number or simply as argument...just wanted to know the significance of arguments [0]. Plz share ur inputs
awesome as always. Just one suggestion , kindly don't zoom it and zoom out unless it is really required.It distract the focus and really not very eyes friendly to quickly keep on changing the font and everything.
@@Mukeshotwani yes Agreed , but actually when we are already watching your videos in full screen , then it is really not required untill the font is very small. But you already take care of font thing for your viewers to make it pretty readable.
Hey Mukesh - loved this one like the other ones in your very instructive playlists. These are a joy to watch. I am facing a strange issue while trying to run a javascript with selenium (this error does not happen when I am using pureplay selenium commands and the program gets executed). Here's a snippet of the code : code : []ClicktoLO = browser.find_element(By.XPATH,"//div[@id]/button[starts-with(@class, 'global-nav__primary-link artdeco-dropdown')]") []browser.execute_script("arguments[0].click();", ClicktoLO) But if I change the above code to simply ClickLO.click(), then the code performs as intended without any error. I have downloaded the chrome driver compatible with my version of chrome. Would you be able to help with a workaround? note : I am using Chrome version starting with 88 and the site I am using is @t, if that helps
Hi Mukesh... Now Javascriptexecutor is clear to me... But i am still facing to access this element via javascriptexecutor... could you please me... how i can access :: before line?? ::before ::after
Hi! I have a scenario on the web page when I enter the password with mouse (clicking for each digit). Have you worked a scenario like the one I mention? on my side I was capturing each value to make comparisons but it brings me null. Greetings from Peru 🇵🇪
Hi, I am getting this error when using executeScript method - org.openqa.selenium.JavascriptException: javascript error: arguments[0].click is not a function. Is there any solution for this, I have checked the syntax it is correct.
@@Mukeshotwani thanks mukesh for the quick reply. I tried that already and it didn’t work. My case is to double click radio button in safari browser. In all other browsers single click is working and there is a bug with safari browser/ driver and solution is to do double click .
I spent hours looking for a solution to "Exception in thread "main" org.openqa.selenium.ElementNotInteractableException: element not interactable" error.
Thank you so much. Your trick works perfectly. This video deserves a like.
Great Kunal and I am glad it helped 😊🙏
Nothing can be as precise and clear as this video .Thanks.
Thanks Monica ji
Finally I got to know why we use this, thanks.
Great Anil, next video will give more clarity about JavaScriptExeutor
Outstanding work really appreciatable work. Precisely you devoted your precious time to make this video.
Thanks Sajab.
Thank you for explaining it in so simple way 🤩
thank you Sarika 😊
excellent explanation and masterclass 👏 👌
Thank you so much buddy.
Hi Mukesh, Can we write on text box with java script executer. In my project I have Pega model Window and it can not intractable. When run code it always says NoSuchElemnt.Or can you advice how to do automation for Pega Model Window?
Very Nicely Explained !!!
Glad it was helpful! Thank you Mandheer
Thank you Sir, Its Awesome presentation.
Thanks and welcome Hossain.
hii Mukesh how click on Starts ?? for example how want to give reviews of products using starts *****
Super Master, thanks for sharing this video
**Uses JavaScript click**
**It was super effective.**
Thank you Charles
Hi Mukesh; if I can’t click on a particular element to get the locator ;how can I print all elements on console ;based on sorted one(only the price)?
Hi Liji, you can use findElements method which will return elements as list and the you can sort them using Collections class.
@@Mukeshotwani when I use findelements I can’t give the xpath or any locators
Hi Mukesh,
Just a small query here why specifically we are mentioning arguments [0] why not arguments [1] or any other number or simply as argument...just wanted to know the significance of arguments [0]. Plz share ur inputs
Valid question Rakesh, next video which is coming tomorrow will clear your argument doubt.
@@Mukeshotwani Great effort Mukesh...Thanx a lot for taking my question in consideration. It's my great pleasure.
awesome as always.
Just one suggestion , kindly don't zoom it and zoom out unless it is really required.It distract the focus and really not very eyes friendly to quickly keep on changing the font and everything.
Noted Neeti thanks for suggestions. I found zoom in zoom out make video more attractive because we can focus on minor details as well.
@@Mukeshotwani yes Agreed , but actually when we are already watching your videos in full screen , then it is really not required untill the font is very small. But you already take care of font thing for your viewers to make it pretty readable.
I wonder if Selenium Actions are better or have same effect?
Hi Bagzhan, Selenium actions works 95% of time so I only used JS actions whenever Selenium fail to perform on elements.
hi sir, after doing mouseover in amazon application , I need to click on orders without using link text . could you please help me with the same.
Hi Vamsi you can use Actions class so first call moveToElement then call click method of actions class.
Thanks Mukesh, It really helped.
Very helpful......Thank you Sir
Thanks Akshay, I am glad it helped.
Hi Mukesh can you please tell me how to do double click using js executor. I have tried dblclick function but it's not working for me
Thank you so much. Really helped me👍🙏👌
Hey Jayanth, I am Glad it helped!
Thank you a lot. Finally, I have made it works!
Awesome Mate, I m glad it worked.
Hi I need help, nainitalbank >>recruitment>>apply management trainee apply>> but click on new registration button not navigating/clickable
Thank you so much, this helped a lot
Thank you Nilakshi, I am glad it helped 🙏
Very Helpful , Thank you so much :)
Thanks Khusbhu I am glad it worked for you.
Hey Mukesh - loved this one like the other ones in your very instructive playlists. These are a joy to watch. I am facing a strange issue while trying to run a javascript with selenium (this error does not happen when I am using pureplay selenium commands and the program gets executed). Here's a snippet of the code :
code :
[]ClicktoLO = browser.find_element(By.XPATH,"//div[@id]/button[starts-with(@class, 'global-nav__primary-link artdeco-dropdown')]")
[]browser.execute_script("arguments[0].click();", ClicktoLO)
But if I change the above code to simply ClickLO.click(), then the code performs as intended without any error.
I have downloaded the chrome driver compatible with my version of chrome.
Would you be able to help with a workaround?
note : I am using Chrome version starting with 88 and the site I am using is @t, if that helps
thanks, very good .you can make a videos using the most complete Google console.
Enable the caption option, please ..
hello sir i am try this that is documnet.title on you tube but it gives error to me. i try all different options but it does not click on it why?
Hi Mukesh... Now Javascriptexecutor is clear to me... But i am still facing to access this element via javascriptexecutor...
could you please me... how i can access :: before line??
::before
::after
Super helpful, thank you!
You're welcome!
Thank you
You're welcome Khatera
Hi! I have a scenario on the web page when I enter the password with mouse (clicking for each digit). Have you worked a scenario like the one I mention? on my side I was capturing each value to make comparisons but it brings me null. Greetings from Peru 🇵🇪
Hey Abraham, if you can share the sample application then I can help you here.
@@Mukeshotwani I solved it, yesterday. Thanks my friend. God Bless U
@@mrpimpita5555 Thanks a ton mate..
Hi, I am getting this error when using executeScript method - org.openqa.selenium.JavascriptException: javascript error: arguments[0].click is not a function. Is there any solution for this, I have checked the syntax it is correct.
It should be arguments[0].click();
Hi sir... Can you help me how to fix this error. javascript error: Cannot read property 'clientWidth' of null
Hey Rajesh, can you share full log along with screenshot ? My email is mukeshotwani@learn-automation.com
@@Mukeshotwani Sir i just sent you an email with full Log.
How to do double click with js executor
Hi Mohan you can use dblclick() function
@@Mukeshotwani thanks mukesh for the quick reply. I tried that already and it didn’t work. My case is to double click radio button in safari browser. In all other browsers single click is working and there is a bug with safari browser/ driver and solution is to do double click .
Thanks a lot
How to handle I am not robot checkbox
Hi Mayuri, if after selecting checkbox if it is showing some images like select lights etc in that case you cant automate.
How to do this in VBA? Anyone can help?
Unfortunately not working in my case.
there was no need of music in this vedio.
Yes agree ☺️
6:00
Please eliminate the background music from the videos , doesn't help to concentrate on what you are teaching.