Fixed feature tests failure on chrome caused due to selenium grid implementation changes.

pull/33/head
Yogesh Mahajan 2020-05-12 17:01:40 +05:30 committed by Akshay Joshi
parent 46e9924ebb
commit 8ec1d4c9eb
1 changed files with 5 additions and 1 deletions

View File

@ -1178,10 +1178,14 @@ class PgadminPage:
:param el:
"""
actions = ActionChains(self.driver)
if "platform" in self.driver.capabilities:
platform = (self.driver.capabilities["platform"]).lower()
elif "platformName" in self.driver.capabilities:
platform = (self.driver.capabilities["platformName"]).lower()
if el:
# Must step
el.click()
if self.driver.capabilities["platformName"] == 'mac':
if 'mac' in platform:
# FF step
el.send_keys(Keys.COMMAND + "v")
# Chrome Step