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

Поділитися
Вставка
  • Опубліковано 17 лис 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!

  • @sujathik
    @sujathik 3 роки тому +1

    Thank you Mukesh !! It was nicely explained !!

  • @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

  • @thennarasuthen9179
    @thennarasuthen9179 3 роки тому +1

    Good explanation...thank you for the video

  • @atulthorat5670
    @atulthorat5670 4 роки тому +1

    Thank you Mukesh....!

  • @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.

  • @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?

  • @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.

  • @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

  • @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 2 роки тому

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

    • @venkatakalki3892
      @venkatakalki3892 2 роки тому

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

    • @nischaysinha99
      @nischaysinha99 2 роки тому

      @@venkatakalki3892 😁

  • @believers_1
    @believers_1 Рік тому

    can you provide the source code please?

  • @mahapol8812
    @mahapol8812 3 роки тому

    Post video on shadow dom

  • @jirkadolezal8127
    @jirkadolezal8127 2 роки тому

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