#5 How To Work With WebElements In Selenium With Python- SendKeys, Click, Clear,GetAttribute etc.

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ธ.ค. 2024

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

  • @saikrishna.b736
    @saikrishna.b736 4 ปีที่แล้ว +3

    Thank you for your videos bro ...keep going ...you videos are good and clean to understand...and also short simple videos dividing to topic makes easy for us ...

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว

      Thank you Krishna

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

      @@Mukeshotwani Hello can you please help, I am trying to interact with the buy now button on the amazon page. But, I am getting the error: str object is not callable. I have written the below lines of code.
      context=driver.find_element(By.XPATH("//button[contains(@class,'_2KpZ6l _2U9uOA _3v1-ww')]"))
      context.click()
      Will you very glad if you can please help me out. Thanks!

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

    I am enjoying python series
    Thanks!

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

    hi mukesk sir, I tried send.keys() but I am getting this AttributeError: 'str' object has no attribute 'send_keys' kindly tell me how to fix it

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

    Thank you Mukesh !! It was nicely explained !!

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

    Hey there! Do you know how to pass by this error?:
    Traceback (most recent call last):
    File "C:\Users\zzz\SeleniumScripts\WebElements.py", line 5, in
    driver = webdriver.Chrome(service=s)
    TypeError: __init__() got an unexpected keyword argument 'service'

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

      I'm having the same issue

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

      I also got same error..

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

      @@Jonizoda did you solve the error?

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

      @@shivanibhavsar852 hi, yes I did get through it. Service did not work for me, so I did not use it.
      I simply called driver =webdriver.Chrome(executable_path="path")
      Then move on from there as usual. I didn't have any problems following rest of the tutorial that way.

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

      @@Jonizoda and how did you write the chromedriver.exe file location path. Because now I am getting this error.. "path" executable needs to be in PATH
      Can you please provide your code?

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

    Hi mukesh sir, I an not getting the methods after dot in pycharm for example send_keys(), click(). Please suggest me on this.

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

    Thank you Mukesh....!

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

    Good explanation...thank you for the video

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

    Hi Mukhesh,
    I did the same program like what you did but I am getting error as:"driver = webdriver.chrome(service=l)
    TypeError: 'module' object is not callable".
    Could you please help

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

      I got this issue resolved. Error was because of Selenium version changes. I was using 3.1.41 for which it was throwing the error which I mentioned before. Thanks

    • @Mukeshotwani
      @Mukeshotwani  4 ปีที่แล้ว

      Great Vimal I am glad you solved from your end.

    • @VK_2002
      @VK_2002 4 ปีที่แล้ว

      Thanks for your instant reply Mukesh

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

      in chrome "C" shold be used bro
      than you will get that

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

    I tried giving the code u compiled but also its just opening the firefox not the websites which are given..what to do sir??

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

      Hi Aditya, check gecko driver this could be compatibility issue.

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

    hello,my keys are not importing and i cannot find username.isenabled function in my pycharm

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

      Hi Nishay, please cross check your code. May be some small mistake (uppercase, lowecase)

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

      @@Mukeshotwani got it sir .it was find element ..i was using find element s

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

      @@Mukeshotwani my code is correct sir , my keys are not importing please help on this

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

      @@nischaysinha99 Hi bro, Please help me on this i'm entering keys manually

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

      @@venkatakalki3892 😁

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

    Post video on shadow dom

  • @believers_1
    @believers_1 ปีที่แล้ว

    can you provide the source code please?

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

    👍👍👍👍👍👍👍👍👍👍👍👍