Skip to content

Commit

Permalink
Hot fixed (#121)
Browse files Browse the repository at this point in the history
Co-authored-by: DESKTOP\atthaboon.s <atthaboon.s@qahive.com>
  • Loading branch information
atthaboon and atthaboon authored Jul 14, 2021
1 parent 0d9dadb commit 88a3a5b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions PuppeteerLibrary/playwright/custom_elements/playwright_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,16 @@ async def waitForSelector_with_selenium_locator(self, selenium_locator: str, tim
options['state'] = 'hidden'

selector_value = SelectorAbstraction.get_selector(selenium_locator)
return await self.get_page().wait_for_selector(
selector=selector_value,
timeout=options['timeout'],
state=options['state'])
if self.selected_iframe is not None:
return await self.selected_iframe.wait_for_selector(
selector=selector_value,
timeout=options['timeout'],
state=options['state'])
else:
return await self.get_page().wait_for_selector(
selector=selector_value,
timeout=options['timeout'],
state=options['state'])

############
# Query
Expand Down

0 comments on commit 88a3a5b

Please sign in to comment.