Thanks alot sir for the amazing tutorials. I would like to add one more action with respect scrolling, that can be performed using JSE. //This will scroll, until the particular element is visible on the page. public static void scrollToElementUsingJS(WebElement element, WebDriver driver){ JavascriptExecutor js = (JavascriptExecutor)driver; js.executeScript("arguments[0].scrollIntoView(true);",element); }
hello pavan sir,Thank you so much for sharing your knowledge.i am preparing for testing and i am watching all your videos .i have one question here, when we have to use arguments[0] ,in the script you used it only for some methods.
can we create non static method in generic utility class for jse because I tried with non static method but its not working, it works only with static method
This complete webseries is more than enough to crack any interview.These all concepts are enough to work in real time
This is a question ? or else you are trying to give suggestion based on your experience?
Thanks alot sir for the amazing tutorials.
I would like to add one more action with respect scrolling, that can be performed using JSE.
//This will scroll, until the particular element is visible on the page.
public static void scrollToElementUsingJS(WebElement element, WebDriver driver){
JavascriptExecutor js = (JavascriptExecutor)driver;
js.executeScript("arguments[0].scrollIntoView(true);",element);
}
thank you for adding method here, it is helpful for us to get to know additional things about given topic.
superb...
Thanks
Hi Pawan, hope you are well. At 1.39, I think EdgeDriver extends ChromiumDriver, not RemoteWebDriver. Can you please correct me if I'm wrong, thanks.
you are right.
hello pavan sir,Thank you so much for sharing your knowledge.i am preparing for testing and i am watching all your videos .i have one question here, when we have to use arguments[0] ,in the script you used it only for some methods.
Great example sir
Thanks
Great sir 🙏
we need to type manually all the java scripts pre defined methods .or else we can copy form somewhere?
Awesome
thanks
Hi pavan sir, session was very useful. Could you please attach the javascript executor utility file in description. It would be helpful for us.
Thanks
Welcome
can we create non static method in generic utility class for jse because I tried with non static method but its not working, it works only with static method
u need to create instance of the class then
Sir, it is possible to upload 32 video code add in your github ?
Upto topics is over is there any remaining parts
🙏🙏
🙏🙏🙏❤️❤️❤️❤️❤️❤️
Sir,if you could share code, through git it would be great
Sir, can we use driver. executeScript("script Code")
Repetitive code is considered bad programming practice. You should have avoided this as an instructor.
what is this
arguements[0].style.border='3px solid red
This is for to hilight a element with color border