Skip to content

Commit

Permalink
update find_element in docs (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZomeTlfca authored Mar 31, 2023
1 parent 8c58e88 commit ffde0b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/multiple_drivers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The driver wrapper contains the driver instance, that can be used as a regular d

.. code-block:: python
second_wrapper.driver.find_element_by_xpath('//form')
second_wrapper.driver.find_element(BY.XPATH, '//form')
To use the second driver in page objects and their elements, pass the driver wrapper to the page object constructor:

Expand Down
2 changes: 1 addition & 1 deletion docs/visual_testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ or

.. code-block:: python
form_element = self.driver.find_element_by_xpath('//form')
form_element = self.driver.find_element(BY.XPATH, '//form')
self.assert_screenshot(form_element, screenshot_name)
* Comparing a single element, represented by its locator
Expand Down

0 comments on commit ffde0b0

Please sign in to comment.