Fixed feature tests failure on chrome caused due to selenium grid implementation changes.
parent
46e9924ebb
commit
8ec1d4c9eb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue