none
click a button inside div class c# RRS feed

  • Question

  • i am trying to click on the audio of the recaptcha v2 site: https://www.google.com/recaptcha/api2/demo pic: https://prnt.sc/rqdoij <-- of this clicking the code that i am trying to get clicked pic: https://prnt.sc/rqdozc i tried already many code but none of them worked how can i click this audio button in c# with selenium googledriver

    thanks

    Tuesday, March 31, 2020 8:46 PM

All replies

  • Hi Ahron321,

    Welcome to MSDN forum.

    It seems you use selenium framework to test, I’m afraid, since our forum discusses about Web Performance Test, Load Test and Coded UI Test,  I recommend you could go to Stack Overflow tagged with selenium chromedriver or selenium, and start a new thread there to seek for a more professional help.

    BTW, maybe following codes could help you.

    WebDriver driver = new ChromeDriver();
    driver.findElement(By.xpath("/html/body/XXXX/div/div/button\r\n" +"")).click();

    Hope this helps and have a nice day.

    Best Regards,

    Tianyu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, April 1, 2020 4:21 AM
  • no it wont help can you help me please i need it so much
    Wednesday, April 1, 2020 8:41 AM
  • Hi Ahron321,

    Thanks for your feedback.

    I would love to help you, but to be honest, I’m not familiar with Selenium framework, and this issue is out of our support range. I consider the corresponding forum for Selenium could give you a more professional help.

    Really sorry for this inconvenience and thanks for your understanding.

    Sincerely,

    Tianyu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, April 2, 2020 1:01 AM