@@ -15,7 +15,7 @@ You can install the component in two different ways:
15
15
16
16
* :doc: `Install it via Composer </components/using_components >`
17
17
(``symfony/browser-kit `` on `Packagist `_);
18
- * Use the official Git repository (https://github.com/symfony/BrowserKit ).
18
+ * Use the official Git repository (https://github.com/symfony/browser-kit ).
19
19
20
20
Basic Usage
21
21
-----------
@@ -45,16 +45,17 @@ This method accepts a request and should return a response::
45
45
}
46
46
}
47
47
48
- For a simple implementation of a browser based on an HTTP layer, have a look
49
- at `Goutte `_. For an implementation based on ``HttpKernelInterface ``, have a
50
- look at the Client provided by the :doc: `HttpKernel component </components/http_kernel/introduction >`.
48
+ For a simple implementation of a browser based on the HTTP layer, have a look
49
+ at `Goutte `_. For an implementation based on ``HttpKernelInterface ``, have
50
+ a look at the :class: `Symfony\\ Component\\ HttpKernel\\ Client ` provided by
51
+ the :doc: `HttpKernel component </components/http_kernel/introduction >`.
51
52
52
53
Making Requests
53
54
~~~~~~~~~~~~~~~
54
55
55
- Use the :method: `Symfony\\ Component\\ BrowserKit\\ Client::request ` method to make
56
- any HTTP request . The first two arguments are for the HTTP method and the
57
- requested URL::
56
+ Use the :method: `Symfony\\ Component\\ BrowserKit\\ Client::request ` method to
57
+ make HTTP requests . The first two arguments are the HTTP method and the requested
58
+ URL::
58
59
59
60
use Acme\Client;
60
61
@@ -63,16 +64,16 @@ requested URL::
63
64
64
65
The value returned by the ``request() `` method is an instance of the
65
66
:class: `Symfony\\ Component\\ DomCrawler\\ Crawler ` class, provided by the
66
- :doc: `DomCrawler component </components/dom_crawler >`, and which allows
67
- accessing and traversing HTML elements programmatically.
67
+ :doc: `DomCrawler component </components/dom_crawler >`, which allows accessing
68
+ and traversing HTML elements programmatically.
68
69
69
70
Clicking Links
70
71
~~~~~~~~~~~~~~
71
72
72
73
The ``Crawler `` object is capable of simulating link clicks. First, pass the
73
- text content of the link to the ``selectLink() `` method, which returns you a
74
- ``Link `` object. Then, pass this object to the ``click() `` method, which makes
75
- the needed HTTP GET request to simulate the link click::
74
+ text content of the link to the ``selectLink() `` method, which returns a
75
+ ``Link `` object. Then, pass this object to the ``click() `` method, which
76
+ performs the needed HTTP GET request to simulate the link click::
76
77
77
78
use Acme\Client;
78
79
0 commit comments