Perform Click Operation using JavascriptExecutor in Selenium WebDriver

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024

Комментарии • 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 3 года назад +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?