Perform Click Operation using JavascriptExecutor in Selenium WebDriver

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ม.ค. 2025

ความคิดเห็น • 19

  • @HYRTutorials
    @HYRTutorials  4 ปีที่แล้ว +1

    📌 JavascriptExecutor Playlist Link: bit.ly/2FhNXwS
    ✴ Checkout my other playlists: bit.ly/3gLIAVL
    ☕ Buy me a coffee: bit.ly/33ljBWc

  • @ERDheerajmann
    @ERDheerajmann ปีที่แล้ว +1

    your video should get alot more likes and comments

  • @angaraki
    @angaraki 4 ปีที่แล้ว +2

    Very nicely explained.

  • @kishoresrinivas2104
    @kishoresrinivas2104 2 ปีที่แล้ว +1

    very nice explanation bro

  • @amitbhardwaj7824
    @amitbhardwaj7824 4 ปีที่แล้ว +1

    nice explain keep uploading

  • @rajv6109
    @rajv6109 4 ปีที่แล้ว +2

    Super this is raja reddy i liked ur videos if u can do a video on github and jenkins series it will be a great

    • @HYRTutorials
      @HYRTutorials  4 ปีที่แล้ว +2

      Sure Raja Reddy, but it may take some time.

  • @avinashdudala9490
    @avinashdudala9490 2 ปีที่แล้ว +1

    Hi how to get css color property using javascript when element doesn't have style as attribute directly on element?.

    • @HYRTutorials
      @HYRTutorials  2 ปีที่แล้ว

      Try this:
      var backgroundColor = window.getComputedStyle ? window.getComputedStyle(myDiv, null).getPropertyValue("background-color") : myDiv.style.backgroundColor;

    • @avinashdudala9490
      @avinashdudala9490 2 ปีที่แล้ว +1

      @H Y R Tutorials hi actually iam using Robot framework appium in mobile device can you sent me code snippet how to use above syntax in robot framework

    • @HYRTutorials
      @HYRTutorials  2 ปีที่แล้ว

      @@avinashdudala9490 I havent looked into robot framework anytime but it is the normal javascript code only buddy.
      So if u knew how to use the javascript in that framework then you can use this easily

  • @ravipremani6201
    @ravipremani6201 3 ปีที่แล้ว +1

    I want to perform the same operation Visual Studio using C# How can I achieve it

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว

      It is same in C# as well, except the javascriptexecutor reference creation.
      IJavaScriptExecutor jsExecutor = (IJavaScriptExecutor)driver;
      jsExecutor.ExecuteScript();
      Javascript code is not changed for java and C#, replace with actual javascript code

  • @bhaskarrelan
    @bhaskarrelan 2 ปีที่แล้ว

    I am having issues to get click for tag where Log ....any guidance?

    • @HYRTutorials
      @HYRTutorials  2 ปีที่แล้ว

      You have the ID for the link so you can directly use the same to click.
      What is the error you are getting buddy?