468,275 Members | 1,855 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,275 developers. It's quick & easy.

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

240 128KB
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.
Jan 27 '20 #1

✓ answered by SioSio

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

1 1719
SioSio
240 128KB
Was self resolved
Driver.FindElement(By.class("tlid-translation"))
Jan 28 '20 #2

Post your reply

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

Similar topics

1 post views Thread by Pavel Novotný | last post: by
2 posts views Thread by Sreenivas | last post: by
risk32
8 posts views Thread by risk32 | last post: by
reply views Thread by zattat | last post: by
1 post views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.