You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Finished translating chrome_devtools.pt-br.md to Brazilian Portuguese (SeleniumHQ#1050)
* Finished translating chrome_devtools.pt-br.md to Brazilian Portuguese
Finished translating the entire page located at website_and_docs/content/documentation/webdriver/bidirectional/chrome_devtools.pt-br.md to Brazilian Portuguese and replaced all the remaining English text that could still be found there with its Portuguese counterpart.
* Remove page needs translation warning since chrome_devtools.pt-br.md has been completely translated to Brazilian Portuguese
Remove page needs translation warning since chrome_devtools.pt-br.md has been completely translated to Brazilian Portuguese
* Fixed deviceScaleFacor
Fixed deviceScaleFactor that wasn't supposed to be translated
[deploy site]
English to Portuguese. Do you speak Portuguese? Help us to translate
16
-
it by sending us pull requests!
17
-
</p>
12
+
Apesar do Selenium 4 providenciar acesso direto ao Protocolo Chrome DevTools (CDP), é altamente recomendável que você use o [WebDriver Bidi APIs]({{< ref "bidi_api.md" >}}) ao invés do acesso direto.
18
13
{{% /pageinfo %}}
19
14
20
-
{{% pageinfo color="warning" %}}
21
-
While Selenium 4 provides direct access to the Chrome DevTools Protocol (CDP), it is
22
-
highly encouraged that you use the [WebDriver Bidi APIs]({{< ref "bidi_api.md" >}}) instead.
23
-
{{% /pageinfo %}}
24
-
25
-
Many browsers provide "DevTools" -- a set of tools that are integrated with the browser that
26
-
developers can use to debug web apps and explore the performance of their pages. Google Chrome's
27
-
DevTools make use of a protocol called the Chrome DevTools Protocol (or "CDP" for short).
28
-
As the name suggests, this is not designed for testing, nor to have a stable API, so functionality
29
-
is highly dependent on the version of the browser.
15
+
Muitos navegadores fornecem o "DevTools", um conjunto de ferramentas integradas ao navegador, que
16
+
desenvolvedores podem usar para depurar web apps analisar o desempenho de suas páginas. O DevTools do Google Chrome faz o uso de um protocolo chamado Protocolo Chrome DevTools (abreviado como "CDP").
17
+
Como o nome sugere, ele não foi projetado para testes, ou tem uma API estável, portanto, sua funcionalidade depende muito da versão do navegador de internet.
30
18
31
-
WebDriver Bidi is the next generation of the W3C WebDriver protocol and aims to provide a stable API
32
-
implemented by all browsers, but it's not yet complete. Until it is, Selenium provides access to
33
-
the CDP for those browsers that implement it (such as Google Chrome, or Microsoft Edge, and
34
-
Firefox), allowing you to enhance your tests in interesting ways. Some examples of what you can
35
-
do with it are given below.
19
+
WebDriver Bidi é a próxima geração do protocolo W3C WebDriver e visa fornecer uma API estável
20
+
implementado por todos os navegadores, mas ele ainda não está completo. Até que seja, o Selenium fornece acesso ao
21
+
CDP para os navegadores que o implementam (como Google Chrome ou Microsoft Edge e
22
+
Firefox), permitindo que você aprimore seus testes de maneiras interessantes. Alguns exemplos do que você pode
23
+
fazer com ele são dadas abaixo.
36
24
37
-
## Emulate Geo Location
25
+
## Emular Geo Localização
38
26
39
-
Some applications have different features and functionalities across different
40
-
locations. Automating such applications is difficult because it is hard to emulate
41
-
the geo-locations in the browser using Selenium. But with the help of Devtools,
42
-
we can easily emulate them. Below code snippet demonstrates that.
27
+
Alguns aplicativos têm recursos e funcionalidades diferentes em diferentes
28
+
locations. Automatizar esses tipos de aplicativos é complicado porque é difícil emular
29
+
as geolocalizações no navegador usando o Selenium. Mas com a ajuda do Devtools,
30
+
podemos facilmente as emular. O trecho do código abaixo demonstra isso.
43
31
44
32
{{< tabpane langEqualsHeader=true >}}
45
33
{{< tab header="Java" >}}
@@ -104,7 +92,7 @@ require 'selenium-webdriver'
104
92
driver = Selenium::WebDriver.for :chrome
105
93
106
94
begin
107
-
# Latitude and longitude of Tokyo, Japan
95
+
# Latitude e longitude de Tóquio, Japão
108
96
coordinates = { latitude: 35.689487,
109
97
longitude: 139.691706,
110
98
accuracy: 100 }
@@ -133,7 +121,7 @@ fun main() {
133
121
{{< /tab >}}
134
122
{{< /tabpane >}}
135
123
136
-
## Emulate Geo Location with the Remote WebDriver:
124
+
## Emular localização geográfica com o Remote WebDriver:
Using Selenium's integration with CDP, one can override the current device
295
-
mode and simulate a new mode. Width, height, mobile, and deviceScaleFactor
296
-
are required parameters. Optional parameters include scale, screenWidth,
297
-
screenHeight, positionX, positionY, dontSetVisible, screenOrientation, viewport, and displayFeature.
282
+
Usando a integração do Selenium com o CDP, pode-se substituir o modo do dispositivo atual e simular um novo modo. Width(largura), Height(altura), mobile(mobilidade) e deviceScaleFactor são parâmetros obrigatórios. Parâmetros opcionais incluem scale(escala), screenWidth(largura da tela),
283
+
screenHeight(altura da tela), positionX, positionY, dontSetVisible(não setar como visível), screenOrientation(orientação da tela), viewport e displayFeature.
0 commit comments