robotframework-appiumlibrary icon indicating copy to clipboard operation
robotframework-appiumlibrary copied to clipboard

"TypeError: exceptions must be old-style classes or derived from BaseException, not unicode" is appeared (iOS)

Open apahomov1989 opened this issue 8 years ago • 2 comments

Hi guys, I am new for robot framework, so I count on your support.

Using environment: Appium-Python-Client==0.24 robotframework==3.0.2 robotframework-appiumlibrary==1.4.4 robotframework-ride==1.5.2.1 robotframework-selenium2library==1.8.0 sauceclient==1.0.0 selenium==3.3.1 Appium version 1.6.6-beta.3

Test example: *** Settings *** Library AppiumLibrary

*** Variables *** ${Submit emal} accessibility_id=submitEmailButton

*** Test Cases *** open_home_page Open Application http://localhost:4723/wd/hub platformName=iOS platformVersion=10.3 deviceName=Brisk iPhone 6 Plus udid=5588f3ba56e872185739057476a85cefa257bc1e app=com.greenmountain.birds Click Button ${Submit emal}

After run I get error message "TypeError: exceptions must be old-style classes or derived from BaseException, not unicode". Run details: Starting test: Audubon.Open home page.open_home_page 20170814 19:40:22.614 : INFO : 'submitEmailButton'. 20170814 19:40:23.177 : INFO : 'signInFacebookButton'. 20170814 19:40:23.699 : INFO : 'Our Privacy Policy'. 20170814 19:40:24.157 : FAIL : TypeError: exceptions must be old-style classes or derived from BaseException, not unicode Ending test: Audubon.Open home page.open_home_page

apahomov1989 avatar Aug 14 '17 16:08 apahomov1989

are you sure that application actually opened before clicking any button? Also try to use Click Element instead of button

serhatbolsu avatar Aug 20 '17 19:08 serhatbolsu

Thanks @serhatbolsu click element vs. click button got me further!

tonebot13 avatar May 16 '18 00:05 tonebot13

Closing due to inactivity

serhatbolsu avatar Oct 27 '22 08:10 serhatbolsu