By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,275 Members | 1,961 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,275 IT Pros & Developers. It's quick & easy.

I don't know how to receive results from Google translate using Selenium.

P: 94
I don't know how to receive results from Google translate using Chrome with Selenium.
Expand|Select|Wrap|Line Numbers
  1. Imports Selenium
  2. Public Partial Class MainForm
  3.     Dim Driver As WebDriver    
  4.     Public Sub New()
  5.         Dim Str As String
  6.         Str = "This is test."
  7.         Driver = New ChromeDriver()
  8.         Driver.Get("https://translate.google.com/")
  9.         Dim element As WebElement = Driver.findElement(By.id("source"))
  10.         element.clear()
  11.         element.SendKeys(Str)
  12.         'I do not know how to get translate results.
  13.     End Sub
  14. End Class
  15.  
Thanks.
4 Weeks Ago #1

✓ answered by SioSio

Was self resolved
Driver.FindElement(By.class("tlid-translation"))

Share this Question
Share on Google+
1 Reply


P: 94
Was self resolved
Driver.FindElement(By.class("tlid-translation"))
4 Weeks Ago #2

Post your reply

Sign in to post your reply or Sign up for a free account.